#include "chrome/browser/enterprise/connectors/reporting/extension_telemetry_event_router.h"
#include "chrome/browser/enterprise/connectors/reporting/extension_telemetry_event_router_factory.h"
#include "chrome/browser/enterprise/connectors/reporting/realtime_reporting_client.h"
#include "chrome/browser/enterprise/connectors/reporting/realtime_reporting_client_factory.h"
#include "components/enterprise/connectors/core/reporting_service_settings.h"
#include "components/safe_browsing/core/common/features.h"
namespace enterprise_connectors {
namespace {
RepeatedPtrField;
ExtensionInfo;
ExtensionTelemetryReportRequest;
RemoteHostInfo;
CookiesGetAllInfo;
CookiesGetInfo;
RemoteHostContactedInfo;
TabsApiInfo;
base::Value::Dict CreateExtensionInfoDict(const ExtensionInfo& extension_info) { … }
base::Value::Dict CreateCookiesGetAllInfoDict(
const CookiesGetAllInfo& cookies_get_all_info) { … }
base::Value::Dict CreateCookiesGetInfoDict(
const CookiesGetInfo& cookies_get_info) { … }
base::Value::Dict CreateRemoteHostContactedInfoDict(
const RemoteHostContactedInfo& remote_host_contacted_info) { … }
base::Value::Dict CreateTabsApiInfoDict(const TabsApiInfo& tabs_api_info) { … }
base::Value::Dict CreateExtensionTelemetryReportDict(
const ExtensionTelemetryReportRequest::Report& report) { … }
base::Value::Dict CreateExtensionTelemetryReportRequestDict(
const ExtensionTelemetryReportRequest& request) { … }
}
const char ExtensionTelemetryEventRouter::kKeyExtensionTelemetryReport[] = …;
const char ExtensionTelemetryEventRouter::kKeyCreationTimeMsec[] = …;
const char ExtensionTelemetryEventRouter::kKeyReports[] = …;
const char ExtensionTelemetryEventRouter::kKeyExtension[] = …;
const char ExtensionTelemetryEventRouter::kKeySignals[] = …;
const char ExtensionTelemetryEventRouter::kKeyCookiesGetAllInfo[] = …;
const char ExtensionTelemetryEventRouter::kKeyGetAllArgsInfo[] = …;
const char ExtensionTelemetryEventRouter::kKeyCookiesGetInfo[] = …;
const char ExtensionTelemetryEventRouter::kKeyGetArgsInfo[] = …;
const char ExtensionTelemetryEventRouter::kKeyRemoteHostContactedInfo[] = …;
const char ExtensionTelemetryEventRouter::kKeyRemoteHost[] = …;
const char ExtensionTelemetryEventRouter::kKeyTabsApiInfo[] = …;
const char ExtensionTelemetryEventRouter::kKeyCallDetails[] = …;
const char ExtensionTelemetryEventRouter::kKeyId[] = …;
const char ExtensionTelemetryEventRouter::kKeyVersion[] = …;
const char ExtensionTelemetryEventRouter::kKeyName[] = …;
const char ExtensionTelemetryEventRouter::kKeyInstallLocation[] = …;
const char ExtensionTelemetryEventRouter::kKeyIsFromStore[] = …;
const char ExtensionTelemetryEventRouter::kKeyUrl[] = …;
const char ExtensionTelemetryEventRouter::kKeyConnectionProtocol[] = …;
const char ExtensionTelemetryEventRouter::kKeyContactedBy[] = …;
const char ExtensionTelemetryEventRouter::kKeyContactCount[] = …;
const char ExtensionTelemetryEventRouter::kKeyDomain[] = …;
const char ExtensionTelemetryEventRouter::kKeyPath[] = …;
const char ExtensionTelemetryEventRouter::kKeySecure[] = …;
const char ExtensionTelemetryEventRouter::kKeyStoreId[] = …;
const char ExtensionTelemetryEventRouter::kKeyIsSession[] = …;
const char ExtensionTelemetryEventRouter::kKeyCount[] = …;
const char ExtensionTelemetryEventRouter::kKeyMethod[] = …;
const char ExtensionTelemetryEventRouter::kKeyNewUrl[] = …;
const char ExtensionTelemetryEventRouter::kKeyCurrentUrl[] = …;
const char ExtensionTelemetryEventRouter::kKeyFileInfo[] = …;
const char ExtensionTelemetryEventRouter::kKeyHash[] = …;
ExtensionTelemetryEventRouter* ExtensionTelemetryEventRouter::Get(
Profile* profile) { … }
ExtensionTelemetryEventRouter::ExtensionTelemetryEventRouter(
content::BrowserContext* context)
: … { … }
ExtensionTelemetryEventRouter::~ExtensionTelemetryEventRouter() = default;
bool ExtensionTelemetryEventRouter::IsPolicyEnabled() { … }
void ExtensionTelemetryEventRouter::UploadTelemetryReport(
std::unique_ptr<safe_browsing::ExtensionTelemetryReportRequest>
telemetry_report_request) { … }
}