#include "chrome/browser/data_sharing/desktop/data_sharing_sdk_delegate_desktop.h"
#include "chrome/browser/data_sharing/desktop/data_sharing_conversion_utils.h"
#include "chrome/browser/ui/webui/data_sharing/data_sharing_page_handler.h"
#include "chrome/common/webui_url_constants.h"
namespace data_sharing {
DataSharingSDKDelegateDesktop::DataSharingSDKDelegateDesktop(
content::BrowserContext* context)
: … { … }
DataSharingSDKDelegateDesktop::~DataSharingSDKDelegateDesktop() = default;
void DataSharingSDKDelegateDesktop::Initialize(
DataSharingNetworkLoader* data_sharing_network_loader) { … }
void DataSharingSDKDelegateDesktop::CreateGroup(
const data_sharing_pb::CreateGroupParams& params,
base::OnceCallback<
void(const base::expected<data_sharing_pb::CreateGroupResult,
absl::Status>&)> callback) { … }
void DataSharingSDKDelegateDesktop::ReadGroups(
const data_sharing_pb::ReadGroupsParams& params,
ReadGroupsCallback callback) { … }
void DataSharingSDKDelegateDesktop::AddMember(
const data_sharing_pb::AddMemberParams& params,
base::OnceCallback<void(const absl::Status&)> callback) { … }
void DataSharingSDKDelegateDesktop::RemoveMember(
const data_sharing_pb::RemoveMemberParams& params,
base::OnceCallback<void(const absl::Status&)> callback) { … }
void DataSharingSDKDelegateDesktop::DeleteGroup(
const data_sharing_pb::DeleteGroupParams& params,
base::OnceCallback<void(const absl::Status&)> callback) { … }
void DataSharingSDKDelegateDesktop::LookupGaiaIdByEmail(
const data_sharing_pb::LookupGaiaIdByEmailParams& params,
base::OnceCallback<
void(const base::expected<data_sharing_pb::LookupGaiaIdByEmailResult,
absl::Status>&)> callback) { … }
void DataSharingSDKDelegateDesktop::AddAccessToken(
const data_sharing_pb::AddAccessTokenParams& params,
base::OnceCallback<
void(const base::expected<data_sharing_pb::AddAccessTokenResult,
absl::Status>&)> callback) { … }
void DataSharingSDKDelegateDesktop::MaybeLoadWebContents(
LoadFinishedCallback callback) { … }
void DataSharingSDKDelegateDesktop::ApiInitComplete() { … }
void DataSharingSDKDelegateDesktop::Shutdown() { … }
void DataSharingSDKDelegateDesktop::OnReadGroups(
ReadGroupsCallback callback,
std::vector<data_sharing::mojom::GroupDataPtr> groups) { … }
}