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

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

Issue 1353613002: [BackgroundSync] Clean up some style nits and unnecessary checks (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
« no previous file with comments | « content/child/background_sync/background_sync_provider.h ('k') | 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 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 "content/common/background_sync_service.mojom.h" 10 #include "content/common/background_sync_service.mojom.h"
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 static BackgroundSyncProviderThreadProxy* GetThreadInstance( 32 static BackgroundSyncProviderThreadProxy* GetThreadInstance(
33 base::SingleThreadTaskRunner* main_thread_task_runner, 33 base::SingleThreadTaskRunner* main_thread_task_runner,
34 BackgroundSyncProvider* permissions_dispatcher); 34 BackgroundSyncProvider* permissions_dispatcher);
35 35
36 // blink::WebSyncProvider implementation 36 // blink::WebSyncProvider implementation
37 void registerBackgroundSync( 37 void registerBackgroundSync(
38 const blink::WebSyncRegistration* options, 38 const blink::WebSyncRegistration* options,
39 blink::WebServiceWorkerRegistration* service_worker_registration, 39 blink::WebServiceWorkerRegistration* service_worker_registration,
40 bool requested_from_service_worker, 40 bool requested_from_service_worker,
41 blink::WebSyncRegistrationCallbacks* callbacks); 41 blink::WebSyncRegistrationCallbacks* callbacks) override;
42 void unregisterBackgroundSync( 42 void unregisterBackgroundSync(
43 blink::WebSyncRegistration::Periodicity periodicity, 43 blink::WebSyncRegistration::Periodicity periodicity,
44 int64_t id, 44 int64_t id,
45 const blink::WebString& tag, 45 const blink::WebString& tag,
46 blink::WebServiceWorkerRegistration* service_worker_registration, 46 blink::WebServiceWorkerRegistration* service_worker_registration,
47 blink::WebSyncUnregistrationCallbacks* callbacks); 47 blink::WebSyncUnregistrationCallbacks* callbacks) override;
48 void getRegistration( 48 void getRegistration(
49 blink::WebSyncRegistration::Periodicity, 49 blink::WebSyncRegistration::Periodicity,
50 const blink::WebString& tag, 50 const blink::WebString& tag,
51 blink::WebServiceWorkerRegistration* service_worker_registration, 51 blink::WebServiceWorkerRegistration* service_worker_registration,
52 blink::WebSyncRegistrationCallbacks* callbacks); 52 blink::WebSyncRegistrationCallbacks* callbacks) override;
53 void getRegistrations( 53 void getRegistrations(
54 blink::WebSyncRegistration::Periodicity periodicity, 54 blink::WebSyncRegistration::Periodicity periodicity,
55 blink::WebServiceWorkerRegistration* service_worker_registration, 55 blink::WebServiceWorkerRegistration* service_worker_registration,
56 blink::WebSyncGetRegistrationsCallbacks* callbacks); 56 blink::WebSyncGetRegistrationsCallbacks* callbacks) override;
57 void getPermissionStatus( 57 void getPermissionStatus(
58 blink::WebSyncRegistration::Periodicity periodicity, 58 blink::WebSyncRegistration::Periodicity periodicity,
59 blink::WebServiceWorkerRegistration* service_worker_registration, 59 blink::WebServiceWorkerRegistration* service_worker_registration,
60 blink::WebSyncGetPermissionStatusCallbacks* callbacks); 60 blink::WebSyncGetPermissionStatusCallbacks* callbacks) override;
61 void releaseRegistration(int64_t handle_id); 61 void releaseRegistration(int64_t handle_id) override;
62 62
63 // Given |handle_id|, ask the provider for a new handle with the same 63 // Given |handle_id|, ask the provider for a new handle with the same
64 // underlying registration. 64 // underlying registration.
65 void DuplicateRegistrationHandle( 65 void DuplicateRegistrationHandle(
66 int64 handle_id, 66 int64 handle_id,
67 const BackgroundSyncService::DuplicateRegistrationHandleCallback& 67 const BackgroundSyncService::DuplicateRegistrationHandleCallback&
68 callback); 68 callback);
69 69
70 // WorkerThread::Observer implementation. 70 // WorkerThread::Observer implementation.
71 void WillStopCurrentWorkerThread() override; 71 void WillStopCurrentWorkerThread() override;
(...skipping 11 matching lines...) Expand all
83 // and so should outlive the BackgroundSyncProviderThreadProxy, which is 83 // and so should outlive the BackgroundSyncProviderThreadProxy, which is
84 // created for a worker thread. 84 // created for a worker thread.
85 BackgroundSyncProvider* sync_provider_; 85 BackgroundSyncProvider* sync_provider_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProviderThreadProxy); 87 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProviderThreadProxy);
88 }; 88 };
89 89
90 } // namespace content 90 } // namespace content
91 91
92 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_THREAD_PROXY_H _ 92 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_THREAD_PROXY_H _
OLDNEW
« no previous file with comments | « content/child/background_sync/background_sync_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698