#include "chrome/browser/ui/webui/sync_internals/chrome_sync_internals_message_handler.h"
#include <string>
#include <utility>
#include <vector>
#include "base/containers/span.h"
#include "base/ranges/algorithm.h"
ChromeSyncInternalsMessageHandler::ChromeSyncInternalsMessageHandler(
signin::IdentityManager* identity_manager,
syncer::SyncService* sync_service,
syncer::SyncInvalidationsService* sync_invalidations_service,
syncer::UserEventService* user_event_service,
const std::string& channel)
: … { … }
void ChromeSyncInternalsMessageHandler::SendEventToPage(
std::string_view event_name,
base::span<const base::ValueView> args) { … }
void ChromeSyncInternalsMessageHandler::ResolvePageCallback(
const base::ValueView callback_id,
const base::ValueView response) { … }
void ChromeSyncInternalsMessageHandler::RegisterMessages() { … }
void ChromeSyncInternalsMessageHandler::OnJavascriptDisallowed() { … }
void ChromeSyncInternalsMessageHandler::AllowJavascriptAndHandleMessage(
const browser_sync::SyncInternalsMessageHandler::PageMessageHandler&
handler,
const base::Value::List& args) { … }