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

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

Issue 688413002: Add terminateServiceWorker method for layout tests - chromium side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move message 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
« 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const base::string16& message, 110 const base::string16& message,
111 const std::vector<int>& sent_message_port_ids); 111 const std::vector<int>& sent_message_port_ids);
112 void OnIncrementServiceWorkerRefCount(int handle_id); 112 void OnIncrementServiceWorkerRefCount(int handle_id);
113 void OnDecrementServiceWorkerRefCount(int handle_id); 113 void OnDecrementServiceWorkerRefCount(int handle_id);
114 void OnIncrementRegistrationRefCount(int registration_handle_id); 114 void OnIncrementRegistrationRefCount(int registration_handle_id);
115 void OnDecrementRegistrationRefCount(int registration_handle_id); 115 void OnDecrementRegistrationRefCount(int registration_handle_id);
116 void OnPostMessageToWorker(int handle_id, 116 void OnPostMessageToWorker(int handle_id,
117 const base::string16& message, 117 const base::string16& message,
118 const std::vector<int>& sent_message_port_ids); 118 const std::vector<int>& sent_message_port_ids);
119 void OnServiceWorkerObjectDestroyed(int handle_id); 119 void OnServiceWorkerObjectDestroyed(int handle_id);
120 void OnTerminateWorker(int handle_id);
120 121
121 ServiceWorkerRegistrationHandle* FindRegistrationHandle( 122 ServiceWorkerRegistrationHandle* FindRegistrationHandle(
122 int provider_id, 123 int provider_id,
123 int64 registration_id); 124 int64 registration_id);
124 125
125 void GetRegistrationObjectInfoAndVersionAttributes( 126 void GetRegistrationObjectInfoAndVersionAttributes(
126 int provider_id, 127 int provider_id,
127 ServiceWorkerRegistration* registration, 128 ServiceWorkerRegistration* registration,
128 ServiceWorkerRegistrationObjectInfo* info, 129 ServiceWorkerRegistrationObjectInfo* info,
129 ServiceWorkerVersionAttributes* attrs); 130 ServiceWorkerVersionAttributes* attrs);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 171
171 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL. 172 bool channel_ready_; // True after BrowserMessageFilter::sender_ != NULL.
172 ScopedVector<IPC::Message> pending_messages_; 173 ScopedVector<IPC::Message> pending_messages_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost); 175 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcherHost);
175 }; 176 };
176 177
177 } // namespace content 178 } // namespace content
178 179
179 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_HOST_H_ 180 #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