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

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

Issue 771103002: Implement ServiceWorkerClient attributes [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 void OnUpdateFound(int thread_id, 190 void OnUpdateFound(int thread_id,
191 const ServiceWorkerRegistrationObjectInfo& info); 191 const ServiceWorkerRegistrationObjectInfo& info);
192 void OnSetControllerServiceWorker(int thread_id, 192 void OnSetControllerServiceWorker(int thread_id,
193 int provider_id, 193 int provider_id,
194 const ServiceWorkerObjectInfo& info); 194 const ServiceWorkerObjectInfo& info);
195 void OnPostMessage(int thread_id, 195 void OnPostMessage(int thread_id,
196 int provider_id, 196 int provider_id,
197 const base::string16& message, 197 const base::string16& message,
198 const std::vector<int>& sent_message_port_ids, 198 const std::vector<int>& sent_message_port_ids,
199 const std::vector<int>& new_routing_ids); 199 const std::vector<int>& new_routing_ids);
200 void OnGetClientInfo(int thread_id,
201 int embedded_worker_id,
202 int request_id,
203 int provider_id);
200 204
201 void SetInstallingServiceWorker( 205 void SetInstallingServiceWorker(
202 int provider_id, 206 int provider_id,
203 int registration_handle_id, 207 int registration_handle_id,
204 const ServiceWorkerObjectInfo& info); 208 const ServiceWorkerObjectInfo& info);
205 void SetWaitingServiceWorker( 209 void SetWaitingServiceWorker(
206 int provider_id, 210 int provider_id,
207 int registration_handle_id, 211 int registration_handle_id,
208 const ServiceWorkerObjectInfo& info); 212 const ServiceWorkerObjectInfo& info);
209 void SetActiveServiceWorker( 213 void SetActiveServiceWorker(
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 WorkerToProviderMap worker_to_provider_; 246 WorkerToProviderMap worker_to_provider_;
243 247
244 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 248 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
245 249
246 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); 250 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher);
247 }; 251 };
248 252
249 } // namespace content 253 } // namespace content
250 254
251 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 255 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698