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

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

Issue 1344843003: [BackgroundSync] Add browser side support for SyncRegistration.done (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ncn_max
Patch Set: Address comments from PS7 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 "content/common/background_sync_service.mojom.h" 10 #include "content/common/background_sync_service.mojom.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 blink::WebSyncRegistrationCallbacks* callbacks) override; 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) override; 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) override; 60 blink::WebSyncGetPermissionStatusCallbacks* callbacks) override;
61 void releaseRegistration(int64_t handle_id) override; 61 void releaseRegistration(int64_t handle_id) override;
62 void notifyWhenDone(
63 int64_t handle_id,
64 blink::WebSyncNotifyWhenDoneCallbacks* callbacks) override;
62 65
63 // Given |handle_id|, ask the provider for a new handle with the same 66 // Given |handle_id|, ask the provider for a new handle with the same
64 // underlying registration. 67 // underlying registration.
65 void DuplicateRegistrationHandle( 68 void DuplicateRegistrationHandle(
66 int64 handle_id, 69 int64 handle_id,
67 const BackgroundSyncService::DuplicateRegistrationHandleCallback& 70 const BackgroundSyncService::DuplicateRegistrationHandleCallback&
68 callback); 71 callback);
69 72
70 // WorkerThread::Observer implementation. 73 // WorkerThread::Observer implementation.
71 void WillStopCurrentWorkerThread() override; 74 void WillStopCurrentWorkerThread() override;
(...skipping 11 matching lines...) Expand all
83 // and so should outlive the BackgroundSyncProviderThreadProxy, which is 86 // and so should outlive the BackgroundSyncProviderThreadProxy, which is
84 // created for a worker thread. 87 // created for a worker thread.
85 BackgroundSyncProvider* sync_provider_; 88 BackgroundSyncProvider* sync_provider_;
86 89
87 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProviderThreadProxy); 90 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProviderThreadProxy);
88 }; 91 };
89 92
90 } // namespace content 93 } // namespace content
91 94
92 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_THREAD_PROXY_H _ 95 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_THREAD_PROXY_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698