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

Side by Side Diff: content/child/background_sync/background_sync_provider_thread_proxy.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_THREAD_PROXY_H_ 5 #ifndef CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_THREAD_PROXY_H_
6 #define CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_THREAD_PROXY_H_ 6 #define CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_THREAD_PROXY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/child/worker_task_runner.h" 9 #include "content/child/worker_task_runner.h"
10 #include "third_party/WebKit/public/platform/modules/background_sync/WebSyncProv ider.h" 10 #include "third_party/WebKit/public/platform/modules/background_sync/WebSyncProv ider.h"
(...skipping 17 matching lines...) Expand all
28 public WorkerTaskRunner::Observer { 28 public WorkerTaskRunner::Observer {
29 public: 29 public:
30 static BackgroundSyncProviderThreadProxy* GetThreadInstance( 30 static BackgroundSyncProviderThreadProxy* GetThreadInstance(
31 base::SingleThreadTaskRunner* main_thread_task_runner, 31 base::SingleThreadTaskRunner* main_thread_task_runner,
32 BackgroundSyncProvider* permissions_dispatcher); 32 BackgroundSyncProvider* permissions_dispatcher);
33 33
34 // blink::WebSyncProvider implementation 34 // blink::WebSyncProvider implementation
35 void registerBackgroundSync( 35 void registerBackgroundSync(
36 const blink::WebSyncRegistration* options, 36 const blink::WebSyncRegistration* options,
37 blink::WebServiceWorkerRegistration* service_worker_registration, 37 blink::WebServiceWorkerRegistration* service_worker_registration,
38 bool requested_from_service_worker,
38 blink::WebSyncRegistrationCallbacks* callbacks); 39 blink::WebSyncRegistrationCallbacks* callbacks);
39 void unregisterBackgroundSync( 40 void unregisterBackgroundSync(
40 blink::WebSyncRegistration::Periodicity periodicity, 41 blink::WebSyncRegistration::Periodicity periodicity,
41 int64_t id, 42 int64_t id,
42 const blink::WebString& tag, 43 const blink::WebString& tag,
43 blink::WebServiceWorkerRegistration* service_worker_registration, 44 blink::WebServiceWorkerRegistration* service_worker_registration,
44 blink::WebSyncUnregistrationCallbacks* callbacks); 45 blink::WebSyncUnregistrationCallbacks* callbacks);
45 void getRegistration( 46 void getRegistration(
46 blink::WebSyncRegistration::Periodicity, 47 blink::WebSyncRegistration::Periodicity,
47 const blink::WebString& tag, 48 const blink::WebString& tag,
(...skipping 24 matching lines...) Expand all
72 // and so should outlive the BackgroundSyncProviderThreadProxy, which is 73 // and so should outlive the BackgroundSyncProviderThreadProxy, which is
73 // created for a worker thread. 74 // created for a worker thread.
74 BackgroundSyncProvider* sync_provider_; 75 BackgroundSyncProvider* sync_provider_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProviderThreadProxy); 77 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProviderThreadProxy);
77 }; 78 };
78 79
79 } // namespace content 80 } // namespace content
80 81
81 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_THREAD_PROXY_H _ 82 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_THREAD_PROXY_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698