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

Side by Side Diff: content/child/background_sync/background_sync_provider.h

Issue 1316743002: Reland of [Background Sync] Allow sync manager access from uncontrolled clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
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 CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ 5 #ifndef CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_
6 #define CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ 6 #define CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 13 matching lines...) Expand all
24 class BackgroundSyncProvider : public blink::WebSyncProvider { 24 class BackgroundSyncProvider : public blink::WebSyncProvider {
25 public: 25 public:
26 explicit BackgroundSyncProvider(ServiceRegistry* service_registry); 26 explicit BackgroundSyncProvider(ServiceRegistry* service_registry);
27 27
28 ~BackgroundSyncProvider() override; 28 ~BackgroundSyncProvider() override;
29 29
30 // blink::WebSyncProvider implementation 30 // blink::WebSyncProvider implementation
31 void registerBackgroundSync( 31 void registerBackgroundSync(
32 const blink::WebSyncRegistration* options, 32 const blink::WebSyncRegistration* options,
33 blink::WebServiceWorkerRegistration* service_worker_registration, 33 blink::WebServiceWorkerRegistration* service_worker_registration,
34 bool requested_from_service_worker,
34 blink::WebSyncRegistrationCallbacks* callbacks); 35 blink::WebSyncRegistrationCallbacks* callbacks);
35 void unregisterBackgroundSync( 36 void unregisterBackgroundSync(
36 blink::WebSyncRegistration::Periodicity periodicity, 37 blink::WebSyncRegistration::Periodicity periodicity,
37 int64_t id, 38 int64_t id,
38 const blink::WebString& tag, 39 const blink::WebString& tag,
39 blink::WebServiceWorkerRegistration* service_worker_registration, 40 blink::WebServiceWorkerRegistration* service_worker_registration,
40 blink::WebSyncUnregistrationCallbacks* callbacks); 41 blink::WebSyncUnregistrationCallbacks* callbacks);
41 void getRegistration( 42 void getRegistration(
42 blink::WebSyncRegistration::Periodicity, 43 blink::WebSyncRegistration::Periodicity,
43 const blink::WebString& tag, 44 const blink::WebString& tag,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 80
80 ServiceRegistry* service_registry_; 81 ServiceRegistry* service_registry_;
81 BackgroundSyncServicePtr background_sync_service_; 82 BackgroundSyncServicePtr background_sync_service_;
82 83
83 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProvider); 84 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProvider);
84 }; 85 };
85 86
86 } // namespace content 87 } // namespace content
87 88
88 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ 89 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698