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

Side by Side Diff: content/renderer/service_worker/service_worker_context_client.h

Issue 1763123002: [BackgroundSync] Remove BackgroundSyncRegistrationHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS7 Created 4 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 6 #define CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 const blink::WebURL&, 171 const blink::WebURL&,
172 blink::WebServiceWorkerClientCallbacks*) override; 172 blink::WebServiceWorkerClientCallbacks*) override;
173 void skipWaiting( 173 void skipWaiting(
174 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override; 174 blink::WebServiceWorkerSkipWaitingCallbacks* callbacks) override;
175 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override; 175 void claim(blink::WebServiceWorkerClientsClaimCallbacks* callbacks) override;
176 void registerForeignFetchScopes( 176 void registerForeignFetchScopes(
177 const blink::WebVector<blink::WebURL>& sub_scopes, 177 const blink::WebVector<blink::WebURL>& sub_scopes,
178 const blink::WebVector<blink::WebSecurityOrigin>& origins) override; 178 const blink::WebVector<blink::WebSecurityOrigin>& origins) override;
179 179
180 virtual void DispatchSyncEvent( 180 virtual void DispatchSyncEvent(
181 const blink::WebSyncRegistration& registration, 181 const std::string& tag,
182 blink::WebServiceWorkerContextProxy::LastChanceOption last_chance, 182 blink::WebServiceWorkerContextProxy::LastChanceOption last_chance,
183 const SyncCallback& callback); 183 const SyncCallback& callback);
184 184
185 private: 185 private:
186 struct WorkerContextData; 186 struct WorkerContextData;
187 187
188 // Get routing_id for sending message to the ServiceWorkerVersion 188 // Get routing_id for sending message to the ServiceWorkerVersion
189 // in the browser process. 189 // in the browser process.
190 int GetRoutingID() const { return embedded_worker_id_; } 190 int GetRoutingID() const { return embedded_worker_id_; }
191 191
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Initialized on the worker thread in workerContextStarted and 265 // Initialized on the worker thread in workerContextStarted and
266 // destructed on the worker thread in willDestroyWorkerContext. 266 // destructed on the worker thread in willDestroyWorkerContext.
267 scoped_ptr<WorkerContextData> context_; 267 scoped_ptr<WorkerContextData> context_;
268 268
269 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient); 269 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextClient);
270 }; 270 };
271 271
272 } // namespace content 272 } // namespace content
273 273
274 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_ 274 #endif // CONTENT_RENDERER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698