Index: public/platform/WebNotificationManager.h |
diff --git a/public/platform/WebNotificationManager.h b/public/platform/WebNotificationManager.h |
index 0d94b4c76e9b564d376c9f6959d5675ada0e8ee1..3d0f44950af8c8ed72e18b7237d44b7b479e5199 100644 |
--- a/public/platform/WebNotificationManager.h |
+++ b/public/platform/WebNotificationManager.h |
@@ -1,51 +1 @@ |
-// Copyright 2014 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 WebNotificationManager_h |
-#define WebNotificationManager_h |
- |
-#include "WebCallbacks.h" |
-#include "WebNotificationPermission.h" |
- |
-namespace blink { |
- |
-struct WebNotificationData; |
-class WebNotificationDelegate; |
-class WebSerializedOrigin; |
-class WebServiceWorkerRegistration; |
-class WebString; |
- |
-using WebNotificationShowCallbacks = WebCallbacks<void, void>; |
- |
-// Provides the services to show platform notifications to the user. |
-class WebNotificationManager { |
-public: |
- virtual ~WebNotificationManager() { } |
- |
- // Shows a page notification on the user's system. These notifications will have their |
- // events delivered to the delegate specified in this call. |
- virtual void show(const WebSerializedOrigin&, const WebNotificationData&, WebNotificationDelegate*) = 0; |
- |
- // Shows a persistent notification on the user's system. These notifications will have |
- // their events delivered to a Service Worker rather than the object's delegate. Will |
- // take ownership of the WebNotificationShowCallbacks object. |
- virtual void showPersistent(const WebSerializedOrigin&, const WebNotificationData&, WebServiceWorkerRegistration*, WebNotificationShowCallbacks*) { } |
- |
- // Closes a notification previously shown, and removes it if being shown. |
- virtual void close(WebNotificationDelegate*) = 0; |
- |
- // Closes a persistent notification identified by its persistent notification Id. |
- virtual void closePersistent(const WebString& persistentNotificationId) { } |
- |
- // Indicates that the delegate object is being destroyed, and must no longer |
- // be used by the embedder to dispatch events. |
- virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0; |
- |
- // Synchronously checks the permission level for the given origin. |
- virtual WebNotificationPermission checkPermission(const WebSerializedOrigin&) = 0; |
-}; |
- |
-} // namespace blink |
- |
-#endif // WebNotificationManager_h |
+#include "public/platform/modules/notifications/WebNotificationManager.h" |