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

Side by Side Diff: content/browser/service_worker/service_worker_version.h

Issue 737833002: Properly queue messages sent to message ports that are transferred to a service worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cross_process_messaging_with_terminate
Patch Set: format and comment 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_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 int line_number, 265 int line_number,
266 const GURL& source_url) override; 266 const GURL& source_url) override;
267 bool OnMessageReceived(const IPC::Message& message) override; 267 bool OnMessageReceived(const IPC::Message& message) override;
268 268
269 void OnStartMessageSent(ServiceWorkerStatusCode status); 269 void OnStartMessageSent(ServiceWorkerStatusCode status);
270 270
271 void DispatchInstallEventAfterStartWorker(int active_version_id, 271 void DispatchInstallEventAfterStartWorker(int active_version_id,
272 const StatusCallback& callback); 272 const StatusCallback& callback);
273 void DispatchActivateEventAfterStartWorker(const StatusCallback& callback); 273 void DispatchActivateEventAfterStartWorker(const StatusCallback& callback);
274 274
275 void DispatchMessageEventInternal(
276 const base::string16& message,
277 const std::vector<int>& sent_message_port_ids,
278 const StatusCallback& callback);
279
275 // Message handlers. 280 // Message handlers.
276 void OnGetClientDocuments(int request_id); 281 void OnGetClientDocuments(int request_id);
277 void OnActivateEventFinished(int request_id, 282 void OnActivateEventFinished(int request_id,
278 blink::WebServiceWorkerEventResult result); 283 blink::WebServiceWorkerEventResult result);
279 void OnInstallEventFinished(int request_id, 284 void OnInstallEventFinished(int request_id,
280 blink::WebServiceWorkerEventResult result); 285 blink::WebServiceWorkerEventResult result);
281 void OnFetchEventFinished(int request_id, 286 void OnFetchEventFinished(int request_id,
282 ServiceWorkerFetchEventResult result, 287 ServiceWorkerFetchEventResult result,
283 const ServiceWorkerResponse& response); 288 const ServiceWorkerResponse& response);
284 void OnSyncEventFinished(int request_id); 289 void OnSyncEventFinished(int request_id);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 bool is_doomed_; 325 bool is_doomed_;
321 326
322 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 327 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
323 328
324 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 329 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
325 }; 330 };
326 331
327 } // namespace content 332 } // namespace content
328 333
329 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 334 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW
« no previous file with comments | « content/browser/message_port_service.cc ('k') | content/browser/service_worker/service_worker_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698