Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1259)

Unified Diff: content/browser/notifications/blink_notification_service_impl.h

Issue 1995663003: Revert of Introduce the Blink NotificationService, move permission checks there (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/notifications/blink_notification_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/notifications/blink_notification_service_impl.h
diff --git a/content/browser/notifications/blink_notification_service_impl.h b/content/browser/notifications/blink_notification_service_impl.h
deleted file mode 100644
index 30826de166170ced33ede4273b3362b4924844fd..0000000000000000000000000000000000000000
--- a/content/browser/notifications/blink_notification_service_impl.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_NOTIFICATIONS_BLINK_NOTIFICATION_SERVICE_IMPL_H_
-#define CONTENT_BROWSER_NOTIFICATIONS_BLINK_NOTIFICATION_SERVICE_IMPL_H_
-
-#include "base/macros.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/public/cpp/bindings/interface_request.h"
-#include "third_party/WebKit/public/platform/modules/notifications/notification_service.mojom.h"
-
-namespace content {
-
-class PlatformNotificationContextImpl;
-class ResourceContext;
-
-// Implementation of the NotificationService used for Web Notifications. Is
-// responsible for displaying, updating and reading of both non-persistent
-// and persistent notifications. Lives on the IO thread.
-class BlinkNotificationServiceImpl : public blink::mojom::NotificationService {
- public:
- BlinkNotificationServiceImpl(
- PlatformNotificationContextImpl* notification_context,
- ResourceContext* resource_context,
- int render_process_id,
- mojo::InterfaceRequest<blink::mojom::NotificationService> request);
- ~BlinkNotificationServiceImpl() override;
-
- // blink::mojom::NotificationService implementation.
- void GetPermissionStatus(
- const mojo::String& origin,
- const GetPermissionStatusCallback& callback) override;
-
- private:
- // Called when an error is detected on binding_.
- void OnConnectionError();
-
- // The notification context that owns this service instance.
- PlatformNotificationContextImpl* notification_context_;
-
- ResourceContext* resource_context_;
-
- int render_process_id_;
-
- mojo::Binding<blink::mojom::NotificationService> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(BlinkNotificationServiceImpl);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_NOTIFICATIONS_BLINK_NOTIFICATION_SERVICE_IMPL_H_
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/notifications/blink_notification_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698