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/WebString.h" | 10 #include "public/platform/WebString.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Does not take ownership of the WebServiceWorkerRegistration. | 47 // Does not take ownership of the WebServiceWorkerRegistration. |
48 virtual void getPermissionStatus(blink::WebSyncRegistration::Periodicity, We
bServiceWorkerRegistration*, WebSyncGetPermissionStatusCallbacks*) = 0; | 48 virtual void getPermissionStatus(blink::WebSyncRegistration::Periodicity, We
bServiceWorkerRegistration*, WebSyncGetPermissionStatusCallbacks*) = 0; |
49 | 49 |
50 // Takes ownership of the WebSyncNotifyWhenDoneCallbacks. | 50 // Takes ownership of the WebSyncNotifyWhenDoneCallbacks. |
51 virtual void notifyWhenDone(int64_t syncId, WebSyncNotifyWhenDoneCallbacks*
callbacks) | 51 virtual void notifyWhenDone(int64_t syncId, WebSyncNotifyWhenDoneCallbacks*
callbacks) |
52 { | 52 { |
53 // TODO(jkarlin): After landing both legs of the notifyWhenDone CLs, mak
e this a pure virtual function. | 53 // TODO(jkarlin): After landing both legs of the notifyWhenDone CLs, mak
e this a pure virtual function. |
54 callbacks->onError(new WebSyncError(WebSyncError::ErrorTypeAbort, "Funct
ion not implemented.")); | 54 callbacks->onError(new WebSyncError(WebSyncError::ErrorTypeAbort, "Funct
ion not implemented.")); |
55 delete callbacks; | 55 delete callbacks; |
56 } | 56 } |
57 | |
58 // Takes ownership of the WebServiceWorkerRegistration. | |
59 virtual void trackRegistration(WebSyncRegistration* registration) | |
60 { | |
61 // TODO(jkarlin): After landing both legs of the releaseRegistration CLs
, make this a pure virtual function. | |
62 return; | |
63 } | |
64 | |
65 virtual void releaseRegistration(int64_t syncId) | |
66 { | |
67 // TODO(jkarlin): After landing both legs of the releaseRegistration CLs
, make this a pure virtual function. | |
68 return; | |
69 } | |
70 }; | 57 }; |
71 | 58 |
72 } // namespace blink | 59 } // namespace blink |
73 | 60 |
74 #endif // WebSyncProvider_h | 61 #endif // WebSyncProvider_h |
OLD | NEW |