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

Unified Diff: public/platform/modules/background_sync/WebSyncClient.h

Issue 950013002: Add platform files for Background Sync API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make platform methods pure virtual Created 5 years, 10 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 | « no previous file | public/platform/modules/background_sync/WebSyncError.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/background_sync/WebSyncClient.h
diff --git a/public/platform/modules/push_messaging/WebPushClient.h b/public/platform/modules/background_sync/WebSyncClient.h
similarity index 36%
copy from public/platform/modules/push_messaging/WebPushClient.h
copy to public/platform/modules/background_sync/WebSyncClient.h
index 09461099b18fd724a6b9ed7c41251d8d90bf18a2..402d1f8314ca80c5314a962449636f97f57a65f3 100644
--- a/public/platform/modules/push_messaging/WebPushClient.h
+++ b/public/platform/modules/background_sync/WebSyncClient.h
@@ -1,31 +1,29 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2015 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 WebPushClient_h
-#define WebPushClient_h
+#ifndef WebSyncClient_h
+#define WebSyncClient_h
#include "public/platform/WebCallbacks.h"
-#include "public/platform/modules/push_messaging/WebPushError.h"
+#include "public/platform/modules/background_sync/WebSyncError.h"
namespace blink {
class WebServiceWorkerRegistration;
-struct WebPushSubscription;
+struct WebSyncRegistration;
-using WebPushSubscriptionCallbacks = WebCallbacks<WebPushSubscription, WebPushError>;
-// FIXME: Remove when no longer used by the embedder - https://crbug.com/446883.
-using WebPushRegistrationCallbacks = WebPushSubscriptionCallbacks;
+using WebSyncRegistrationCallbacks = WebCallbacks<WebSyncRegistration, WebSyncError>;
-class WebPushClient {
+class WebSyncClient {
public:
- virtual ~WebPushClient() { }
+ virtual ~WebSyncClient() { }
// Ownership of the WebServiceWorkerRegistration is not transferred.
// Ownership of the callbacks is transferred to the client.
- virtual void registerPushMessaging(WebServiceWorkerRegistration*, WebPushRegistrationCallbacks*) { BLINK_ASSERT_NOT_REACHED(); }
+ virtual void registerSync(WebServiceWorkerRegistration*, WebSyncRegistrationCallbacks*) = 0;
};
} // namespace blink
-#endif // WebPushClient_h
+#endif // WebSyncClient_h
« no previous file with comments | « no previous file | public/platform/modules/background_sync/WebSyncError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698