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

Unified Diff: public/platform/modules/background_sync/WebSyncProvider.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
Index: public/platform/modules/background_sync/WebSyncProvider.h
diff --git a/public/platform/modules/background_sync/WebSyncProvider.h b/public/platform/modules/background_sync/WebSyncProvider.h
new file mode 100644
index 0000000000000000000000000000000000000000..841bfd5ad7c733c5ab73f8c63b4be1daa7e25f7b
--- /dev/null
+++ b/public/platform/modules/background_sync/WebSyncProvider.h
@@ -0,0 +1,31 @@
+// 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 WebSyncProvider_h
+#define WebSyncProvider_h
+
+#include "public/platform/WebCallbacks.h"
+#include "public/platform/WebCommon.h"
+
+namespace blink {
+
+class WebServiceWorkerRegistration;
+struct WebSyncError;
+struct WebSyncRegistration;
+struct WebSyncRegistrationOptions;
+
+using WebSyncRegistrationCallbacks = WebCallbacks<WebSyncRegistration, WebSyncError>;
+
+class WebSyncProvider {
+public:
+ virtual ~WebSyncProvider() { }
+
+ // Takes ownership of the WebSyncRegistrationCallbacks.
+ // Does not take ownership of the WebServiceWorkerRegistration.
+ virtual void registerBackgroundSync(const WebSyncRegistrationOptions*, WebSyncRegistrationCallbacks*) = 0;
+};
+
+} // namespace blink
+
+#endif // WebSyncProvider_h
« no previous file with comments | « public/platform/modules/background_sync/WebSyncError.h ('k') | public/platform/modules/background_sync/WebSyncRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698