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

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

Issue 440403002: Don't share ServiceWorkerHandle between provider hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_dispatcher_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void OnPostMessage(int handle_id, 90 void OnPostMessage(int handle_id,
91 const base::string16& message, 91 const base::string16& message,
92 const std::vector<int>& sent_message_port_ids); 92 const std::vector<int>& sent_message_port_ids);
93 void OnIncrementServiceWorkerRefCount(int handle_id); 93 void OnIncrementServiceWorkerRefCount(int handle_id);
94 void OnDecrementServiceWorkerRefCount(int handle_id); 94 void OnDecrementServiceWorkerRefCount(int handle_id);
95 void OnPostMessageToWorker(int handle_id, 95 void OnPostMessageToWorker(int handle_id,
96 const base::string16& message, 96 const base::string16& message,
97 const std::vector<int>& sent_message_port_ids); 97 const std::vector<int>& sent_message_port_ids);
98 void OnServiceWorkerObjectDestroyed(int handle_id); 98 void OnServiceWorkerObjectDestroyed(int handle_id);
99 99
100 ServiceWorkerHandle* FindHandle(int thread_id, int64 version_id); 100 ServiceWorkerHandle* FindHandle(int provider_id, int64 version_id);
101 101
102 // Callbacks from ServiceWorkerContextCore 102 // Callbacks from ServiceWorkerContextCore
103 void RegistrationComplete(int thread_id, 103 void RegistrationComplete(int thread_id,
104 int provider_id,
104 int request_id, 105 int request_id,
105 ServiceWorkerStatusCode status, 106 ServiceWorkerStatusCode status,
106 int64 registration_id, 107 int64 registration_id,
107 int64 version_id); 108 int64 version_id);
108 109
109 void UnregistrationComplete(int thread_id, 110 void UnregistrationComplete(int thread_id,
110 int request_id, 111 int request_id,
111 ServiceWorkerStatusCode status); 112 ServiceWorkerStatusCode status);
112 113
113 void SendRegistrationError(int thread_id, 114 void SendRegistrationError(int thread_id,
(...skipping 10 matching lines...) Expand all
124 125
125 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 126 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
126 ScopedVector<IPC::Message> pending_messages_; 127 ScopedVector<IPC::Message> pending_messages_;
127 128
128 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 129 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
129 }; 130 };
130 131
131 } // namespace content 132 } // namespace content
132 133
133 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 134 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698