Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 content::SERVICE_WORKER_FETCH_EVENT_LAST) | 43 content::SERVICE_WORKER_FETCH_EVENT_LAST) |
| 44 | 44 |
| 45 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse) | 45 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse) |
| 46 IPC_STRUCT_TRAITS_MEMBER(url) | 46 IPC_STRUCT_TRAITS_MEMBER(url) |
| 47 IPC_STRUCT_TRAITS_MEMBER(status_code) | 47 IPC_STRUCT_TRAITS_MEMBER(status_code) |
| 48 IPC_STRUCT_TRAITS_MEMBER(status_text) | 48 IPC_STRUCT_TRAITS_MEMBER(status_text) |
| 49 IPC_STRUCT_TRAITS_MEMBER(headers) | 49 IPC_STRUCT_TRAITS_MEMBER(headers) |
| 50 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) | 50 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) |
| 51 IPC_STRUCT_TRAITS_END() | 51 IPC_STRUCT_TRAITS_END() |
| 52 | 52 |
| 53 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerCacheQueryParams) | |
| 54 IPC_STRUCT_TRAITS_MEMBER(ignore_search) | |
| 55 IPC_STRUCT_TRAITS_MEMBER(ignore_method) | |
| 56 IPC_STRUCT_TRAITS_MEMBER(ignore_vary) | |
| 57 IPC_STRUCT_TRAITS_MEMBER(prefix_match) | |
| 58 IPC_STRUCT_TRAITS_END() | |
| 59 | |
| 60 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerCacheOperationType, | |
| 61 content::SERVICE_WORKER_CACHE_OPERATION_TYPE_LAST) | |
| 62 | |
| 63 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerBatchOperation) | |
| 64 IPC_STRUCT_TRAITS_MEMBER(operation_type) | |
| 65 IPC_STRUCT_TRAITS_MEMBER(request) | |
| 66 IPC_STRUCT_TRAITS_MEMBER(response) | |
| 67 IPC_STRUCT_TRAITS_MEMBER(match_params) | |
| 68 IPC_STRUCT_TRAITS_END() | |
| 69 | |
| 53 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) | 70 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) |
| 54 IPC_STRUCT_TRAITS_MEMBER(handle_id) | 71 IPC_STRUCT_TRAITS_MEMBER(handle_id) |
| 55 IPC_STRUCT_TRAITS_MEMBER(scope) | 72 IPC_STRUCT_TRAITS_MEMBER(scope) |
| 56 IPC_STRUCT_TRAITS_MEMBER(url) | 73 IPC_STRUCT_TRAITS_MEMBER(url) |
| 57 IPC_STRUCT_TRAITS_MEMBER(state) | 74 IPC_STRUCT_TRAITS_MEMBER(state) |
| 58 IPC_STRUCT_TRAITS_END() | 75 IPC_STRUCT_TRAITS_END() |
| 59 | 76 |
| 60 IPC_ENUM_TRAITS_MAX_VALUE( | 77 IPC_ENUM_TRAITS_MAX_VALUE( |
| 61 blink::WebServiceWorkerCacheError, | 78 blink::WebServiceWorkerCacheError, |
| 62 blink::WebServiceWorkerCacheErrorLast); | 79 blink::WebServiceWorkerCacheErrorLast); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 int /* request_id */, | 165 int /* request_id */, |
| 149 base::string16 /* fetch_store_name */) | 166 base::string16 /* fetch_store_name */) |
| 150 | 167 |
| 151 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, | 168 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_CacheStorageDelete, |
| 152 int /* request_id */, | 169 int /* request_id */, |
| 153 base::string16 /* fetch_store_name */) | 170 base::string16 /* fetch_store_name */) |
| 154 | 171 |
| 155 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_CacheStorageKeys, | 172 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_CacheStorageKeys, |
| 156 int /* request_id */) | 173 int /* request_id */) |
| 157 | 174 |
| 175 // Cache operations in the browser. | |
| 176 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_CacheMatch, | |
| 177 int /* request_id */, | |
| 178 int /* cache_id */, | |
| 179 content::ServiceWorkerFetchRequest, | |
| 180 content::ServiceWorkerCacheQueryParams) | |
| 181 | |
| 182 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_CacheMatchAll, | |
| 183 int /* request_id */, | |
| 184 int /* cache_id */, | |
| 185 content::ServiceWorkerFetchRequest, | |
| 186 content::ServiceWorkerCacheQueryParams) | |
| 187 | |
| 188 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_CacheKeys, | |
| 189 int /* request_id */, | |
| 190 int /* cache_id */, | |
| 191 content::ServiceWorkerFetchRequest, | |
| 192 content::ServiceWorkerCacheQueryParams); | |
| 193 | |
| 194 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_CacheBatch, | |
| 195 int /* request_id */, | |
| 196 int /* cache_id */, | |
| 197 std::vector<content::ServiceWorkerBatchOperation>); | |
| 198 | |
| 158 //--------------------------------------------------------------------------- | 199 //--------------------------------------------------------------------------- |
| 159 // Messages sent from the browser to the child process. | 200 // Messages sent from the browser to the child process. |
| 160 // | 201 // |
| 161 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have | 202 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have |
| 162 // a thread_id as their first field so that ServiceWorkerMessageFilter can | 203 // a thread_id as their first field so that ServiceWorkerMessageFilter can |
| 163 // extract it and dispatch the message to the correct ServiceWorkerDispatcher | 204 // extract it and dispatch the message to the correct ServiceWorkerDispatcher |
| 164 // on the correct thread. | 205 // on the correct thread. |
| 165 | 206 |
| 166 // Response to ServiceWorkerMsg_RegisterServiceWorker. | 207 // Response to ServiceWorkerMsg_RegisterServiceWorker. |
| 167 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, | 208 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 272 blink::WebServiceWorkerCacheError /* reason */) | 313 blink::WebServiceWorkerCacheError /* reason */) |
| 273 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, | 314 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, |
| 274 int /* request_id */, | 315 int /* request_id */, |
| 275 blink::WebServiceWorkerCacheError /* reason */) | 316 blink::WebServiceWorkerCacheError /* reason */) |
| 276 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, | 317 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, |
| 277 int /* request_id */, | 318 int /* request_id */, |
| 278 blink::WebServiceWorkerCacheError /* reason */) | 319 blink::WebServiceWorkerCacheError /* reason */) |
| 279 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, | 320 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, |
| 280 int /* request_id */, | 321 int /* request_id */, |
| 281 blink::WebServiceWorkerCacheError /* reason */) | 322 blink::WebServiceWorkerCacheError /* reason */) |
| 323 | |
| 324 // Sent via EmbeddedWorker at successful completion of Cache operations. | |
| 325 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchSuccess, | |
| 326 int /* request_id */, | |
| 327 content::ServiceWorkerResponse) | |
| 328 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllSuccess, | |
| 329 int /* request_id */, | |
| 330 std::vector<content::ServiceWorkerResponse>) | |
|
michaeln
2014/08/15 02:50:24
For the Match/MatchSuccess and MatchAll/MatchAllSu
gavinp
2014/09/03 18:35:24
That's reasonable, but right now we intend to add
| |
| 331 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysSuccess, | |
| 332 int /* request_id */, | |
| 333 std::vector<content::ServiceWorkerFetchRequest>) | |
| 334 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchSuccess, | |
| 335 int /* request_id */, | |
| 336 std::vector<content::ServiceWorkerResponse>) | |
| 337 | |
| 338 // Sent via EmbeddedWorker at erroneous completion of CacheStorage operations. | |
| 339 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchError, | |
| 340 int /* request_id */, | |
| 341 blink::WebServiceWorkerCacheError) | |
| 342 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, | |
| 343 int /* request_id */, | |
| 344 blink::WebServiceWorkerCacheError) | |
| 345 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, | |
| 346 int /* request_id */, | |
| 347 blink::WebServiceWorkerCacheError) | |
| 348 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, | |
| 349 int /* request_id */, | |
| 350 blink::WebServiceWorkerCacheError) | |
| OLD | NEW |