| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebSyncProvider_h | 5 #ifndef WebSyncProvider_h |
| 6 #define WebSyncProvider_h | 6 #define WebSyncProvider_h |
| 7 | 7 |
| 8 #include "public/platform/WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" |
| 9 #include "public/platform/WebCommon.h" | 9 #include "public/platform/WebCommon.h" |
| 10 #include "public/platform/WebPassOwnPtr.h" | 10 #include "public/platform/WebPassOwnPtr.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 public: | 23 public: |
| 24 virtual ~WebSyncProvider() { } | 24 virtual ~WebSyncProvider() { } |
| 25 | 25 |
| 26 // Takes ownership of the WebSyncRegistrationCallbacks. | 26 // Takes ownership of the WebSyncRegistrationCallbacks. |
| 27 // Does not take ownership of the WebServiceWorkerRegistration. | 27 // Does not take ownership of the WebServiceWorkerRegistration. |
| 28 virtual void registerBackgroundSync(const WebSyncRegistration*, WebServiceWo
rkerRegistration*, bool, WebSyncRegistrationCallbacks*) = 0; | 28 virtual void registerBackgroundSync(const WebSyncRegistration*, WebServiceWo
rkerRegistration*, bool, WebSyncRegistrationCallbacks*) = 0; |
| 29 | 29 |
| 30 // Takes ownership of the WebSyncGetRegistrationsCallbacks. | 30 // Takes ownership of the WebSyncGetRegistrationsCallbacks. |
| 31 // Does not take ownership of the WebServiceWorkerRegistration. | 31 // Does not take ownership of the WebServiceWorkerRegistration. |
| 32 virtual void getRegistrations(WebServiceWorkerRegistration*, WebSyncGetRegis
trationsCallbacks*) = 0; | 32 virtual void getRegistrations(WebServiceWorkerRegistration*, WebSyncGetRegis
trationsCallbacks*) = 0; |
| 33 | |
| 34 virtual void releaseRegistration(int64_t handleId) = 0; | |
| 35 }; | 33 }; |
| 36 | 34 |
| 37 } // namespace blink | 35 } // namespace blink |
| 38 | 36 |
| 39 #endif // WebSyncProvider_h | 37 #endif // WebSyncProvider_h |
| OLD | NEW |