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

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

Issue 1317813003: Revert of [Background Sync] Allow sync manager access from uncontrolled clients (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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,
35 blink::WebSyncRegistrationCallbacks* callbacks); 34 blink::WebSyncRegistrationCallbacks* callbacks);
36 void unregisterBackgroundSync( 35 void unregisterBackgroundSync(
37 blink::WebSyncRegistration::Periodicity periodicity, 36 blink::WebSyncRegistration::Periodicity periodicity,
38 int64_t id, 37 int64_t id,
39 const blink::WebString& tag, 38 const blink::WebString& tag,
40 blink::WebServiceWorkerRegistration* service_worker_registration, 39 blink::WebServiceWorkerRegistration* service_worker_registration,
41 blink::WebSyncUnregistrationCallbacks* callbacks); 40 blink::WebSyncUnregistrationCallbacks* callbacks);
42 void getRegistration( 41 void getRegistration(
43 blink::WebSyncRegistration::Periodicity, 42 blink::WebSyncRegistration::Periodicity,
44 const blink::WebString& tag, 43 const blink::WebString& tag,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 79
81 ServiceRegistry* service_registry_; 80 ServiceRegistry* service_registry_;
82 BackgroundSyncServicePtr background_sync_service_; 81 BackgroundSyncServicePtr background_sync_service_;
83 82
84 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProvider); 83 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProvider);
85 }; 84 };
86 85
87 } // namespace content 86 } // namespace content
88 87
89 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ 88 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698