#include "content/browser/notifications/platform_notification_service_proxy.h"
#include <memory>
#include <utility>
#include "base/check_op.h"
#include "content/browser/notifications/devtools_event_logging.h"
#include "content/browser/service_worker/service_worker_context_wrapper.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_database_data.h"
#include "content/public/browser/platform_notification_service.h"
#include "content/public/common/content_client.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
namespace content {
PlatformNotificationServiceProxy::PlatformNotificationServiceProxy(
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context,
BrowserContext* browser_context)
: … { … }
PlatformNotificationServiceProxy::~PlatformNotificationServiceProxy() = default;
base::WeakPtr<PlatformNotificationServiceProxy>
PlatformNotificationServiceProxy::AsWeakPtr() { … }
void PlatformNotificationServiceProxy::DoDisplayNotification(
const NotificationDatabaseData& data,
const GURL& service_worker_scope,
DisplayResultCallback callback) { … }
void PlatformNotificationServiceProxy::VerifyServiceWorkerScope(
const NotificationDatabaseData& data,
DisplayResultCallback callback,
blink::ServiceWorkerStatusCode status,
scoped_refptr<ServiceWorkerRegistration> registration) { … }
void PlatformNotificationServiceProxy::DisplayNotification(
const NotificationDatabaseData& data,
DisplayResultCallback callback) { … }
void PlatformNotificationServiceProxy::CloseNotifications(
const std::set<std::string>& notification_ids) { … }
void PlatformNotificationServiceProxy::ScheduleTrigger(base::Time timestamp) { … }
void PlatformNotificationServiceProxy::ScheduleNotification(
const NotificationDatabaseData& data) { … }
base::Time PlatformNotificationServiceProxy::GetNextTrigger() { … }
void PlatformNotificationServiceProxy::RecordNotificationUkmEvent(
const NotificationDatabaseData& data) { … }
bool PlatformNotificationServiceProxy::ShouldLogClose(const GURL& origin) { … }
void PlatformNotificationServiceProxy::LogClose(
const NotificationDatabaseData& data) { … }
}