#ifndef COMPONENTS_DATA_SHARING_INTERNAL_ANDROID_DATA_SHARING_CONVERSION_BRIDGE_H_
#define COMPONENTS_DATA_SHARING_INTERNAL_ANDROID_DATA_SHARING_CONVERSION_BRIDGE_H_
#include "base/android/jni_android.h"
#include "base/android/scoped_java_ref.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "components/data_sharing/public/data_sharing_service.h"
#include "components/data_sharing/public/data_sharing_utils.h"
#include "components/data_sharing/public/group_data.h"
using base::android::ScopedJavaLocalRef;
namespace data_sharing {
class DataSharingConversionBridge {
public:
static ScopedJavaLocalRef<jobject> CreateGroupDataOrFailureOutcome(
JNIEnv* env,
const DataSharingService::GroupDataOrFailureOutcome& data);
static ScopedJavaLocalRef<jobject> CreateGroupDataSetOrFailureOutcome(
JNIEnv* env,
const DataSharingService::GroupsDataSetOrFailureOutcome& data);
static ScopedJavaLocalRef<jobject> CreatePeopleGroupActionOutcome(JNIEnv* env,
int value);
static ScopedJavaLocalRef<jobject> CreateParseUrlResult(
JNIEnv* env,
const ParseUrlResult& data);
static ScopedJavaLocalRef<jobject> CreateSharedDataPreviewOrFailureOutcome(
JNIEnv* env,
const DataSharingService::SharedDataPreviewOrFailureOutcome& data);
};
}
#endif