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

Side by Side Diff: content/common/cache_storage/cache_storage_messages.h

Issue 1826103002: CacheStorage: Pass url::Origin rather than GURL over IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@origin-idb
Patch Set: Add missing include Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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"
11 #include "content/common/cache_storage/cache_storage_types.h" 11 #include "content/common/cache_storage/cache_storage_types.h"
12 #include "content/common/service_worker/service_worker_types.h" 12 #include "content/common/service_worker/service_worker_types.h"
13 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
14 #include "ipc/ipc_param_traits.h" 14 #include "ipc/ipc_param_traits.h"
15 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerCacheError.h" 15 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerCacheError.h"
16 #include "url/gurl.h" 16 #include "url/origin.h"
17 17
18 #undef IPC_MESSAGE_EXPORT 18 #undef IPC_MESSAGE_EXPORT
19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
20 20
21 #define IPC_MESSAGE_START CacheStorageMsgStart 21 #define IPC_MESSAGE_START CacheStorageMsgStart
22 22
23 // TODO(jsbell): This depends on traits for content::ServiceWorkerResponse 23 // TODO(jsbell): This depends on traits for content::ServiceWorkerResponse
24 // which are defined in service_worker_messages.h - correct this implicit 24 // which are defined in service_worker_messages.h - correct this implicit
25 // cross-dependency. 25 // cross-dependency.
26 26
(...skipping 17 matching lines...) Expand all
44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerCacheError, 44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerCacheError,
45 blink::WebServiceWorkerCacheErrorLast) 45 blink::WebServiceWorkerCacheErrorLast)
46 46
47 //--------------------------------------------------------------------------- 47 //---------------------------------------------------------------------------
48 // Messages sent from the child process to the browser. 48 // Messages sent from the child process to the browser.
49 49
50 // CacheStorage operations in the browser. 50 // CacheStorage operations in the browser.
51 IPC_MESSAGE_CONTROL4(CacheStorageHostMsg_CacheStorageHas, 51 IPC_MESSAGE_CONTROL4(CacheStorageHostMsg_CacheStorageHas,
52 int /* thread_id */, 52 int /* thread_id */,
53 int /* request_id */, 53 int /* request_id */,
54 GURL /* origin */, 54 url::Origin /* origin */,
55 base::string16 /* fetch_store_name */) 55 base::string16 /* fetch_store_name */)
56 56
57 IPC_MESSAGE_CONTROL4(CacheStorageHostMsg_CacheStorageOpen, 57 IPC_MESSAGE_CONTROL4(CacheStorageHostMsg_CacheStorageOpen,
58 int /* thread_id */, 58 int /* thread_id */,
59 int /* request_id */, 59 int /* request_id */,
60 GURL /* origin */, 60 url::Origin /* origin */,
61 base::string16 /* fetch_store_name */) 61 base::string16 /* fetch_store_name */)
62 62
63 IPC_MESSAGE_CONTROL4(CacheStorageHostMsg_CacheStorageDelete, 63 IPC_MESSAGE_CONTROL4(CacheStorageHostMsg_CacheStorageDelete,
64 int /* thread_id */, 64 int /* thread_id */,
65 int /* request_id */, 65 int /* request_id */,
66 GURL /* origin */, 66 url::Origin /* origin */,
67 base::string16 /* fetch_store_name */) 67 base::string16 /* fetch_store_name */)
68 68
69 IPC_MESSAGE_CONTROL3(CacheStorageHostMsg_CacheStorageKeys, 69 IPC_MESSAGE_CONTROL3(CacheStorageHostMsg_CacheStorageKeys,
70 int /* thread_id */, 70 int /* thread_id */,
71 int /* request_id */, 71 int /* request_id */,
72 GURL /* origin */) 72 url::Origin /* origin */)
73 73
74 IPC_MESSAGE_CONTROL5(CacheStorageHostMsg_CacheStorageMatch, 74 IPC_MESSAGE_CONTROL5(CacheStorageHostMsg_CacheStorageMatch,
75 int /* thread_id */, 75 int /* thread_id */,
76 int /* request_id */, 76 int /* request_id */,
77 GURL /* origin */, 77 url::Origin /* origin */,
78 content::ServiceWorkerFetchRequest, 78 content::ServiceWorkerFetchRequest,
79 content::CacheStorageCacheQueryParams) 79 content::CacheStorageCacheQueryParams)
80 80
81 // Cache operations in the browser. 81 // Cache operations in the browser.
82 IPC_MESSAGE_CONTROL5(CacheStorageHostMsg_CacheMatch, 82 IPC_MESSAGE_CONTROL5(CacheStorageHostMsg_CacheMatch,
83 int /* thread_id */, 83 int /* thread_id */,
84 int /* request_id */, 84 int /* request_id */,
85 int /* cache_id */, 85 int /* cache_id */,
86 content::ServiceWorkerFetchRequest, 86 content::ServiceWorkerFetchRequest,
87 content::CacheStorageCacheQueryParams) 87 content::CacheStorageCacheQueryParams)
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 int /* request_id */, 188 int /* request_id */,
189 blink::WebServiceWorkerCacheError) 189 blink::WebServiceWorkerCacheError)
190 IPC_MESSAGE_CONTROL3(CacheStorageMsg_CacheKeysError, 190 IPC_MESSAGE_CONTROL3(CacheStorageMsg_CacheKeysError,
191 int /* thread_id */, 191 int /* thread_id */,
192 int /* request_id */, 192 int /* request_id */,
193 blink::WebServiceWorkerCacheError) 193 blink::WebServiceWorkerCacheError)
194 IPC_MESSAGE_CONTROL3(CacheStorageMsg_CacheBatchError, 194 IPC_MESSAGE_CONTROL3(CacheStorageMsg_CacheBatchError,
195 int /* thread_id */, 195 int /* thread_id */,
196 int /* request_id */, 196 int /* request_id */,
197 blink::WebServiceWorkerCacheError) 197 blink::WebServiceWorkerCacheError)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698