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

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

Issue 1632113004: ServiceWorker: Add initial implementation of ExtendableMessageEvent behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 int embedded_worker_id, 131 int embedded_worker_id,
132 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params); 132 const EmbeddedWorkerHostMsg_ReportConsoleMessage_Params& params);
133 void OnIncrementServiceWorkerRefCount(int handle_id); 133 void OnIncrementServiceWorkerRefCount(int handle_id);
134 void OnDecrementServiceWorkerRefCount(int handle_id); 134 void OnDecrementServiceWorkerRefCount(int handle_id);
135 void OnIncrementRegistrationRefCount(int registration_handle_id); 135 void OnIncrementRegistrationRefCount(int registration_handle_id);
136 void OnDecrementRegistrationRefCount(int registration_handle_id); 136 void OnDecrementRegistrationRefCount(int registration_handle_id);
137 void OnPostMessageToWorker( 137 void OnPostMessageToWorker(
138 int handle_id, 138 int handle_id,
139 const base::string16& message, 139 const base::string16& message,
140 const std::vector<TransferredMessagePort>& sent_message_ports); 140 const std::vector<TransferredMessagePort>& sent_message_ports);
141
142 // TODO(nhiroki): Remove this after ExtendableMessageEvent is enabled by
143 // default (crbug.com/543198).
144 void OnDeprecatedPostMessageToWorker(
145 int handle_id,
146 const base::string16& message,
147 const std::vector<TransferredMessagePort>& sent_message_ports);
148
141 void OnTerminateWorker(int handle_id); 149 void OnTerminateWorker(int handle_id);
142 150
143 ServiceWorkerRegistrationHandle* FindRegistrationHandle( 151 ServiceWorkerRegistrationHandle* FindRegistrationHandle(
144 int provider_id, 152 int provider_id,
145 int64_t registration_handle_id); 153 int64_t registration_handle_id);
146 154
147 void GetRegistrationObjectInfoAndVersionAttributes( 155 void GetRegistrationObjectInfoAndVersionAttributes(
148 base::WeakPtr<ServiceWorkerProviderHost> provider_host, 156 base::WeakPtr<ServiceWorkerProviderHost> provider_host,
149 ServiceWorkerRegistration* registration, 157 ServiceWorkerRegistration* registration,
150 ServiceWorkerRegistrationObjectInfo* info, 158 ServiceWorkerRegistrationObjectInfo* info,
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 234
227 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 235 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
228 std::vector<scoped_ptr<IPC::Message>> pending_messages_; 236 std::vector<scoped_ptr<IPC::Message>> pending_messages_;
229 237
230 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 238 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
231 }; 239 };
232 240
233 } // namespace content 241 } // namespace content
234 242
235 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 243 #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