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

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

Issue 1614063002: [BackgroundSync Cleanup] Remove periodic sync code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@purge_power
Patch Set: Address comments from PS3 Created 4 years, 11 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
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 19 matching lines...) Expand all
30 // Takes ownership of the WebSyncRegistrationCallbacks. 30 // Takes ownership of the WebSyncRegistrationCallbacks.
31 // Does not take ownership of the WebServiceWorkerRegistration. 31 // Does not take ownership of the WebServiceWorkerRegistration.
32 virtual void registerBackgroundSync(const WebSyncRegistration*, WebServiceWo rkerRegistration*, bool, WebSyncRegistrationCallbacks*) = 0; 32 virtual void registerBackgroundSync(const WebSyncRegistration*, WebServiceWo rkerRegistration*, bool, WebSyncRegistrationCallbacks*) = 0;
33 33
34 // Takes ownership of the WebSyncUnregistrationCallbacks. 34 // Takes ownership of the WebSyncUnregistrationCallbacks.
35 // Does not take ownership of the WebServiceWorkerRegistration. 35 // Does not take ownership of the WebServiceWorkerRegistration.
36 virtual void unregisterBackgroundSync(int64_t handleId, WebServiceWorkerRegi stration*, WebSyncUnregistrationCallbacks*) = 0; 36 virtual void unregisterBackgroundSync(int64_t handleId, WebServiceWorkerRegi stration*, WebSyncUnregistrationCallbacks*) = 0;
37 37
38 // Takes ownership of the WebSyncRegistrationCallbacks. 38 // Takes ownership of the WebSyncRegistrationCallbacks.
39 // Does not take ownership of the WebServiceWorkerRegistration. 39 // Does not take ownership of the WebServiceWorkerRegistration.
40 virtual void getRegistration(blink::WebSyncRegistration::Periodicity, const WebString&, WebServiceWorkerRegistration*, WebSyncRegistrationCallbacks*) = 0; 40 virtual void getRegistration(const WebString&, WebServiceWorkerRegistration* , WebSyncRegistrationCallbacks*) = 0;
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(WebServiceWorkerRegistration*, WebSyncGetRegis trationsCallbacks*) = 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(WebServiceWorkerRegistration*, WebSyncGetPe rmissionStatusCallbacks*) = 0;
49 49
50 // Takes ownership of the WebSyncNotifyWhenFinishedCallbacks. 50 // Takes ownership of the WebSyncNotifyWhenFinishedCallbacks.
51 virtual void notifyWhenFinished(int64_t handleId, WebSyncNotifyWhenFinishedC allbacks*) = 0; 51 virtual void notifyWhenFinished(int64_t handleId, WebSyncNotifyWhenFinishedC allbacks*) = 0;
52 52
53 virtual void releaseRegistration(int64_t handleId) = 0; 53 virtual void releaseRegistration(int64_t handleId) = 0;
54 }; 54 };
55 55
56 } // namespace blink 56 } // namespace blink
57 57
58 #endif // WebSyncProvider_h 58 #endif // WebSyncProvider_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698