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

Side by Side Diff: content/common/service_worker/service_worker_messages.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 | « content/child/service_worker/web_service_worker_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Message definition file, included multiple times, hence no include guard. 5 // Message definition file, included multiple times, hence no include guard.
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 int /* handle_id */) 153 int /* handle_id */)
154 154
155 // Increments and decrements the ServiceWorkerRegistration object's reference 155 // Increments and decrements the ServiceWorkerRegistration object's reference
156 // counting in the browser side. The registration object is created with 156 // counting in the browser side. The registration object is created with
157 // ref-count==1 initially. 157 // ref-count==1 initially.
158 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementRegistrationRefCount, 158 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementRegistrationRefCount,
159 int /* registration_handle_id */) 159 int /* registration_handle_id */)
160 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementRegistrationRefCount, 160 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementRegistrationRefCount,
161 int /* registration_handle_id */) 161 int /* registration_handle_id */)
162 162
163 // Tells the browser to terminate a service worker. Used in layout tests to
164 // verify behavior when a service worker isn't running.
165 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_TerminateWorker,
166 int /* handle_id */)
167
163 // Informs the browser that |provider_id| is associated 168 // Informs the browser that |provider_id| is associated
164 // with a service worker script running context and 169 // with a service worker script running context and
165 // |version_id| identifies which ServiceWorkerVersion. 170 // |version_id| identifies which ServiceWorkerVersion.
166 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId, 171 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_SetVersionId,
167 int /* provider_id */, 172 int /* provider_id */,
168 int64 /* version_id */) 173 int64 /* version_id */)
169 174
170 // Informs the browser that event handling has finished. 175 // Informs the browser that event handling has finished.
171 // Routed to the target ServiceWorkerVersion. 176 // Routed to the target ServiceWorkerVersion.
172 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_InstallEventFinished, 177 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_InstallEventFinished,
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 blink::WebServiceWorkerCacheError) 421 blink::WebServiceWorkerCacheError)
417 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 422 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
418 int /* request_id */, 423 int /* request_id */,
419 blink::WebServiceWorkerCacheError) 424 blink::WebServiceWorkerCacheError)
420 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 425 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
421 int /* request_id */, 426 int /* request_id */,
422 blink::WebServiceWorkerCacheError) 427 blink::WebServiceWorkerCacheError)
423 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 428 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
424 int /* request_id */, 429 int /* request_id */,
425 blink::WebServiceWorkerCacheError) 430 blink::WebServiceWorkerCacheError)
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698