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

Side by Side Diff: public/platform/modules/background_sync/WebSyncProvider.h

Issue 1359653002: Clean up WebSyncProvider now that the browser has implemented the necessary functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: abstract Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 30 matching lines...) Expand all
41 41
42 // Takes ownership of the WebSyncGetRegistrationsCallbacks. 42 // Takes ownership of the WebSyncGetRegistrationsCallbacks.
43 // Does not take ownership of the WebServiceWorkerRegistration. 43 // Does not take ownership of the WebServiceWorkerRegistration.
44 virtual void getRegistrations(blink::WebSyncRegistration::Periodicity, WebSe rviceWorkerRegistration*, WebSyncGetRegistrationsCallbacks*) = 0; 44 virtual void getRegistrations(blink::WebSyncRegistration::Periodicity, WebSe rviceWorkerRegistration*, WebSyncGetRegistrationsCallbacks*) = 0;
45 45
46 // Takes ownership of the WebSyncGetPermissionStatusCallbacks. 46 // Takes ownership of the WebSyncGetPermissionStatusCallbacks.
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*) = 0;
52 {
53 // TODO(jkarlin): After landing both legs of the notifyWhenDone CLs, mak e this a pure virtual function.
54 callbacks->onError(WebSyncError(WebSyncError::ErrorTypeAbort, "Function not implemented."));
55 delete callbacks;
56 }
57 52
58 // Takes ownership of the WebServiceWorkerRegistration. 53 virtual void releaseRegistration(int64_t syncId) = 0;
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 }; 54 };
71 55
72 } // namespace blink 56 } // namespace blink
73 57
74 #endif // WebSyncProvider_h 58 #endif // WebSyncProvider_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698