Chromium Code Reviews| 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..d94b22a38d047aab7df01a6d578aff7d451fc482 |
| --- /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*) { BLINK_ASSERT_NOT_REACHED(); } |
|
jochen (gone - plz use gerrit)
2015/02/24 10:23:55
same here
jochen (gone - plz use gerrit)
2015/02/24 10:23:55
same here
iclelland
2015/02/24 13:33:42
Done.
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebSyncProvider_h |