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

Unified Diff: public/platform/WebPushProvider.h

Issue 888513003: Move Push-related Blink API headers into their own directory. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | « public/platform/WebPushPermissionStatus.h ('k') | public/platform/WebPushRegistration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPushProvider.h
diff --git a/public/platform/WebPushProvider.h b/public/platform/WebPushProvider.h
index a525bee1204c4368ae9973852d4126626ffcc611..819f88dd641335d77853f8a1264902d8e3710bca 100644
--- a/public/platform/WebPushProvider.h
+++ b/public/platform/WebPushProvider.h
@@ -1,49 +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 WebPushProvider_h
-#define WebPushProvider_h
-
-#include "public/platform/WebCallbacks.h"
-#include "public/platform/WebCommon.h"
-#include "public/platform/WebPushPermissionStatus.h"
-
-namespace blink {
-
-class WebServiceWorkerRegistration;
-struct WebPushError;
-struct WebPushSubscription;
-
-using WebPushSubscriptionCallbacks = WebCallbacks<WebPushSubscription, WebPushError>;
-// FIXME: Remove when no longer used by the embedder - https://crbug.com/446883.
-using WebPushRegistrationCallbacks = WebPushSubscriptionCallbacks;
-using WebPushPermissionStatusCallbacks = WebCallbacks<WebPushPermissionStatus, void>;
-using WebPushUnsubscribeCallbacks = WebCallbacks<bool, WebPushError>;
-// FIXME: Remove when no longer used by the embedder - https://crbug.com/446883.
-using WebPushUnregisterCallbacks = WebPushUnsubscribeCallbacks;
-
-class WebPushProvider {
-public:
- virtual ~WebPushProvider() { }
-
- // Takes ownership of the WebPushRegistrationCallbacks.
- // Does not take ownership of the WebServiceWorkerRegistration.
- virtual void registerPushMessaging(WebServiceWorkerRegistration*, WebPushRegistrationCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
-
- // Takes ownership of the WebPushRegistrationCallbacks.
- // Does not take ownership of the WebServiceWorkerRegistration.
- virtual void getRegistration(WebServiceWorkerRegistration*, WebPushRegistrationCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
-
- // Takes ownership of the WebPushPermissionStatusCallbacks.
- // Does not take ownership of the WebServiceWorkerRegistration.
- virtual void getPermissionStatus(WebServiceWorkerRegistration*, WebPushPermissionStatusCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
-
- // Takes ownership if the WebPushUnregisterCallbacks.
- // Does not take ownership of the WebServiceWorkerRegistration.
- virtual void unregister(WebServiceWorkerRegistration*, WebPushUnregisterCallbacks* callback) { BLINK_ASSERT_NOT_REACHED(); }
-};
-
-} // namespace blink
-
-#endif // WebPushProvider_h
+#include "public/platform/modules/push_messaging/WebPushProvider.h"
« no previous file with comments | « public/platform/WebPushPermissionStatus.h ('k') | public/platform/WebPushRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698