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

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

Issue 871013003: Gather the ServiceWorker client information in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rfh_getvisibilitystate
Patch Set: 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 const ServiceWorkerRegistrationObjectInfo& info); 193 const ServiceWorkerRegistrationObjectInfo& info);
194 void OnSetControllerServiceWorker(int thread_id, 194 void OnSetControllerServiceWorker(int thread_id,
195 int provider_id, 195 int provider_id,
196 const ServiceWorkerObjectInfo& info, 196 const ServiceWorkerObjectInfo& info,
197 bool should_notify_controllerchange); 197 bool should_notify_controllerchange);
198 void OnPostMessage(int thread_id, 198 void OnPostMessage(int thread_id,
199 int provider_id, 199 int provider_id,
200 const base::string16& message, 200 const base::string16& message,
201 const std::vector<int>& sent_message_port_ids, 201 const std::vector<int>& sent_message_port_ids,
202 const std::vector<int>& new_routing_ids); 202 const std::vector<int>& new_routing_ids);
203 void OnGetClientInfo(int thread_id,
204 int embedded_worker_id,
205 int request_id,
206 int provider_id);
207 203
208 void SetReadyRegistration( 204 void SetReadyRegistration(
209 int provider_id, 205 int provider_id,
210 int registration_handle_id); 206 int registration_handle_id);
211 207
212 // Keeps map from handle_id to ServiceWorker object. 208 // Keeps map from handle_id to ServiceWorker object.
213 void AddServiceWorker(int handle_id, WebServiceWorkerImpl* worker); 209 void AddServiceWorker(int handle_id, WebServiceWorkerImpl* worker);
214 void RemoveServiceWorker(int handle_id); 210 void RemoveServiceWorker(int handle_id);
215 211
216 // Keeps map from registration_handle_id to ServiceWorkerRegistration object. 212 // Keeps map from registration_handle_id to ServiceWorkerRegistration object.
(...skipping 22 matching lines...) Expand all
239 WorkerToProviderMap worker_to_provider_; 235 WorkerToProviderMap worker_to_provider_;
240 236
241 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 237 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
242 238
243 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); 239 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher);
244 }; 240 };
245 241
246 } // namespace content 242 } // namespace content
247 243
248 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ 244 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698