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

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

Issue 1235803003: ServiceWorker: Introduce ExtendableMessageEvent to replace MessageEvent Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const GURL& source_url); 122 const GURL& source_url);
123 void OnReportConsoleMessage( 123 void OnReportConsoleMessage(
124 int embedded_worker_id, 124 int embedded_worker_id,
125 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params); 125 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params);
126 void OnIncrementServiceWorkerRefCount(int handle_id); 126 void OnIncrementServiceWorkerRefCount(int handle_id);
127 void OnDecrementServiceWorkerRefCount(int handle_id); 127 void OnDecrementServiceWorkerRefCount(int handle_id);
128 void OnIncrementRegistrationRefCount(int registration_handle_id); 128 void OnIncrementRegistrationRefCount(int registration_handle_id);
129 void OnDecrementRegistrationRefCount(int registration_handle_id); 129 void OnDecrementRegistrationRefCount(int registration_handle_id);
130 void OnPostMessageToWorker( 130 void OnPostMessageToWorker(
131 int handle_id, 131 int handle_id,
132 int provider_id,
132 const base::string16& message, 133 const base::string16& message,
133 const std::vector<TransferredMessagePort>& sent_message_ports); 134 const std::vector<TransferredMessagePort>& sent_message_ports);
134 void OnServiceWorkerObjectDestroyed(int handle_id); 135 void OnServiceWorkerObjectDestroyed(int handle_id);
135 void OnTerminateWorker(int handle_id); 136 void OnTerminateWorker(int handle_id);
136 137
137 ServiceWorkerRegistrationHandle* FindRegistrationHandle( 138 ServiceWorkerRegistrationHandle* FindRegistrationHandle(
138 int provider_id, 139 int provider_id,
139 int64 registration_id); 140 int64 registration_id);
140 141
141 void GetRegistrationObjectInfoAndVersionAttributes( 142 void GetRegistrationObjectInfoAndVersionAttributes(
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 206
206 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 207 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
207 ScopedVector<IPC::Message> pending_messages_; 208 ScopedVector<IPC::Message> pending_messages_;
208 209
209 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 210 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
210 }; 211 };
211 212
212 } // namespace content 213 } // namespace content
213 214
214 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 215 #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