#include "chrome/browser/ui/webui/data_sharing/data_sharing_page_handler.h"
#include "base/task/single_thread_task_runner.h"
#include "build/branding_buildflags.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/ui/views/data_sharing/data_sharing_utils.h"
#include "chrome/browser/ui/webui/data_sharing/data_sharing_ui.h"
#include "components/signin/public/identity_manager/access_token_info.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "google_apis/gaia/gaia_constants.h"
DataSharingPageHandler::DataSharingPageHandler(
DataSharingUI* webui_controller,
mojo::PendingReceiver<data_sharing::mojom::PageHandler> receiver,
mojo::PendingRemote<data_sharing::mojom::Page> page)
: … { … }
DataSharingPageHandler::~DataSharingPageHandler() { … }
void DataSharingPageHandler::ShowUI() { … }
void DataSharingPageHandler::ApiInitComplete() { … }
void DataSharingPageHandler::GetShareLink(const std::string& group_id,
const std::string& access_token,
GetShareLinkCallback callback) { … }
void DataSharingPageHandler::AssociateTabGroupWithGroupId(
const std::string& tab_group_id,
const std::string& group_id) { … }
Profile* DataSharingPageHandler::GetProfile() { … }
void DataSharingPageHandler::OnAccessTokenFetched(
GoogleServiceAuthError error,
signin::AccessTokenInfo access_token_info) { … }
void DataSharingPageHandler::ReadGroups(
std::vector<std::string> group_ids,
data_sharing::mojom::Page::ReadGroupsCallback callback) { … }