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

Side by Side Diff: content/common/service_worker/service_worker_messages.h

Issue 622833002: ServiceWorkerCache: Support response body in blob form. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@opacity
Patch Set: Rebase Created 6 years, 2 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchEventResult, 51 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchEventResult,
52 content::SERVICE_WORKER_FETCH_EVENT_LAST) 52 content::SERVICE_WORKER_FETCH_EVENT_LAST)
53 53
54 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse) 54 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerResponse)
55 IPC_STRUCT_TRAITS_MEMBER(url) 55 IPC_STRUCT_TRAITS_MEMBER(url)
56 IPC_STRUCT_TRAITS_MEMBER(status_code) 56 IPC_STRUCT_TRAITS_MEMBER(status_code)
57 IPC_STRUCT_TRAITS_MEMBER(status_text) 57 IPC_STRUCT_TRAITS_MEMBER(status_text)
58 IPC_STRUCT_TRAITS_MEMBER(response_type) 58 IPC_STRUCT_TRAITS_MEMBER(response_type)
59 IPC_STRUCT_TRAITS_MEMBER(headers) 59 IPC_STRUCT_TRAITS_MEMBER(headers)
60 IPC_STRUCT_TRAITS_MEMBER(blob_uuid) 60 IPC_STRUCT_TRAITS_MEMBER(blob_uuid)
61 IPC_STRUCT_TRAITS_MEMBER(blob_size)
61 IPC_STRUCT_TRAITS_END() 62 IPC_STRUCT_TRAITS_END()
62 63
63 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerCacheQueryParams) 64 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerCacheQueryParams)
64 IPC_STRUCT_TRAITS_MEMBER(ignore_search) 65 IPC_STRUCT_TRAITS_MEMBER(ignore_search)
65 IPC_STRUCT_TRAITS_MEMBER(ignore_method) 66 IPC_STRUCT_TRAITS_MEMBER(ignore_method)
66 IPC_STRUCT_TRAITS_MEMBER(ignore_vary) 67 IPC_STRUCT_TRAITS_MEMBER(ignore_vary)
67 IPC_STRUCT_TRAITS_MEMBER(prefix_match) 68 IPC_STRUCT_TRAITS_MEMBER(prefix_match)
68 IPC_STRUCT_TRAITS_END() 69 IPC_STRUCT_TRAITS_END()
69 70
70 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerCacheOperationType, 71 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerCacheOperationType,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 content::ServiceWorkerCacheQueryParams) 228 content::ServiceWorkerCacheQueryParams)
228 229
229 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_CacheBatch, 230 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_CacheBatch,
230 int /* request_id */, 231 int /* request_id */,
231 int /* cache_id */, 232 int /* cache_id */,
232 std::vector<content::ServiceWorkerBatchOperation>) 233 std::vector<content::ServiceWorkerBatchOperation>)
233 234
234 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_CacheClosed, 235 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_CacheClosed,
235 int /* cache_id */) 236 int /* cache_id */)
236 237
238 IPC_MESSAGE_ROUTED1(ServiceWorkerHostMsg_BlobDataHandled,
239 base::string16 /* uuid */)
michaeln 2014/10/06 21:01:33 std::string?
jkarlin 2014/10/07 12:48:17 I agree that we should be sending strings instead
240
237 //--------------------------------------------------------------------------- 241 //---------------------------------------------------------------------------
238 // Messages sent from the browser to the child process. 242 // Messages sent from the browser to the child process.
239 // 243 //
240 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have 244 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have
241 // a thread_id as their first field so that ServiceWorkerMessageFilter can 245 // a thread_id as their first field so that ServiceWorkerMessageFilter can
242 // extract it and dispatch the message to the correct ServiceWorkerDispatcher 246 // extract it and dispatch the message to the correct ServiceWorkerDispatcher
243 // on the correct thread. 247 // on the correct thread.
244 248
245 // Informs the child process that the given provider gets associated or 249 // Informs the child process that the given provider gets associated or
246 // disassociated with the registration. 250 // disassociated with the registration.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 blink::WebServiceWorkerCacheError) 412 blink::WebServiceWorkerCacheError)
409 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError, 413 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheMatchAllError,
410 int /* request_id */, 414 int /* request_id */,
411 blink::WebServiceWorkerCacheError) 415 blink::WebServiceWorkerCacheError)
412 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError, 416 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheKeysError,
413 int /* request_id */, 417 int /* request_id */,
414 blink::WebServiceWorkerCacheError) 418 blink::WebServiceWorkerCacheError)
415 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError, 419 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheBatchError,
416 int /* request_id */, 420 int /* request_id */,
417 blink::WebServiceWorkerCacheError) 421 blink::WebServiceWorkerCacheError)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698