#include "third_party/blink/renderer/modules/push_messaging/push_messaging_client.h"
#include <string>
#include <utility>
#include "third_party/blink/public/mojom/manifest/manifest.mojom-blink.h"
#include "third_party/blink/public/mojom/push_messaging/push_messaging_status.mojom-blink.h"
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_local_frame_client.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame_client.h"
#include "third_party/blink/renderer/modules/manifest/manifest_manager.h"
#include "third_party/blink/renderer/modules/push_messaging/push_error.h"
#include "third_party/blink/renderer/modules/push_messaging/push_messaging_utils.h"
#include "third_party/blink/renderer/modules/push_messaging/push_subscription.h"
#include "third_party/blink/renderer/modules/push_messaging/push_subscription_options.h"
#include "third_party/blink/renderer/modules/push_messaging/push_type_converter.h"
#include "third_party/blink/renderer/modules/service_worker/service_worker_registration.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "third_party/blink/renderer/platform/wtf/text/string_utf8_adaptor.h"
namespace blink {
const char PushMessagingClient::kSupplementName[] = …;
PushMessagingClient::PushMessagingClient(LocalDOMWindow& window)
: … { … }
PushMessagingClient* PushMessagingClient::From(LocalDOMWindow& window) { … }
mojom::blink::PushMessaging* PushMessagingClient::GetPushMessagingRemote() { … }
void PushMessagingClient::Subscribe(
ServiceWorkerRegistration* service_worker_registration,
PushSubscriptionOptions* options,
bool user_gesture,
std::unique_ptr<PushSubscriptionCallbacks> callbacks) { … }
void PushMessagingClient::Trace(Visitor* visitor) const { … }
void PushMessagingClient::DidGetManifest(
ServiceWorkerRegistration* service_worker_registration,
mojom::blink::PushSubscriptionOptionsPtr options,
bool user_gesture,
std::unique_ptr<PushSubscriptionCallbacks> callbacks,
mojom::blink::ManifestRequestResult result,
const KURL& manifest_url,
mojom::blink::ManifestPtr manifest) { … }
void PushMessagingClient::DoSubscribe(
ServiceWorkerRegistration* service_worker_registration,
mojom::blink::PushSubscriptionOptionsPtr options,
bool user_gesture,
std::unique_ptr<PushSubscriptionCallbacks> callbacks) { … }
void PushMessagingClient::DidSubscribe(
ServiceWorkerRegistration* service_worker_registration,
std::unique_ptr<PushSubscriptionCallbacks> callbacks,
mojom::blink::PushRegistrationStatus status,
mojom::blink::PushSubscriptionPtr subscription) { … }
}