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

Side by Side Diff: content/child/service_worker/service_worker_dispatcher.h

Issue 849163002: ServiceWorker: Expose registration within ServiceWorkerGlobalScope [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove TODO comment about forwarding messages Created 5 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 typedef std::map<int, WebServiceWorkerImpl*> WorkerObjectMap; 144 typedef std::map<int, WebServiceWorkerImpl*> WorkerObjectMap;
145 typedef std::map<int, WebServiceWorkerRegistrationImpl*> 145 typedef std::map<int, WebServiceWorkerRegistrationImpl*>
146 RegistrationObjectMap; 146 RegistrationObjectMap;
147 147
148 friend class WebServiceWorkerImpl; 148 friend class WebServiceWorkerImpl;
149 friend class WebServiceWorkerRegistrationImpl; 149 friend class WebServiceWorkerRegistrationImpl;
150 150
151 // WorkerTaskRunner::Observer implementation. 151 // WorkerTaskRunner::Observer implementation.
152 void OnWorkerRunLoopStopped() override; 152 void OnWorkerRunLoopStopped() override;
153 153
154 void OnAssociateRegistrationWithServiceWorker(
155 int thread_id,
156 int provider_id,
157 const ServiceWorkerRegistrationObjectInfo& info,
158 const ServiceWorkerVersionAttributes& attrs);
154 void OnAssociateRegistration(int thread_id, 159 void OnAssociateRegistration(int thread_id,
155 int provider_id, 160 int provider_id,
156 const ServiceWorkerRegistrationObjectInfo& info, 161 const ServiceWorkerRegistrationObjectInfo& info,
157 const ServiceWorkerVersionAttributes& attrs); 162 const ServiceWorkerVersionAttributes& attrs);
158 void OnDisassociateRegistration(int thread_id, 163 void OnDisassociateRegistration(int thread_id,
159 int provider_id); 164 int provider_id);
160 void OnRegistered(int thread_id, 165 void OnRegistered(int thread_id,
161 int request_id, 166 int request_id,
162 const ServiceWorkerRegistrationObjectInfo& info, 167 const ServiceWorkerRegistrationObjectInfo& info,
163 const ServiceWorkerVersionAttributes& attrs); 168 const ServiceWorkerVersionAttributes& attrs);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 WorkerToProviderMap worker_to_provider_; 244 WorkerToProviderMap worker_to_provider_;
240 245
241 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 246 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
242 247
243 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); 248 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher);
244 }; 249 };
245 250
246 } // namespace content 251 } // namespace content
247 252
248 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 253 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698