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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: change useCache to updateViaCache Created 3 years, 6 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 29 matching lines...) Expand all
40 40
41 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseType, 41 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseType,
42 blink::kWebServiceWorkerResponseTypeLast) 42 blink::kWebServiceWorkerResponseTypeLast)
43 43
44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseError, 44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseError,
45 blink::kWebServiceWorkerResponseErrorLast) 45 blink::kWebServiceWorkerResponseErrorLast)
46 46
47 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType, 47 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType,
48 blink::kWebServiceWorkerClientTypeLast) 48 blink::kWebServiceWorkerClientTypeLast)
49 49
50 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerUpdateViaCache,
51 blink::WebServiceWorkerUpdateViaCache::kLast)
52
50 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType, 53 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerProviderType,
51 content::SERVICE_WORKER_PROVIDER_TYPE_LAST) 54 content::SERVICE_WORKER_PROVIDER_TYPE_LAST)
52 55
53 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType, 56 IPC_ENUM_TRAITS_MAX_VALUE(content::ServiceWorkerFetchType,
54 content::ServiceWorkerFetchType::LAST) 57 content::ServiceWorkerFetchType::LAST)
55 58
56 IPC_STRUCT_TRAITS_BEGIN(content::ExtendableMessageEventSource) 59 IPC_STRUCT_TRAITS_BEGIN(content::ExtendableMessageEventSource)
57 IPC_STRUCT_TRAITS_MEMBER(client_info) 60 IPC_STRUCT_TRAITS_MEMBER(client_info)
58 IPC_STRUCT_TRAITS_MEMBER(service_worker_info) 61 IPC_STRUCT_TRAITS_MEMBER(service_worker_info)
59 IPC_STRUCT_TRAITS_END() 62 IPC_STRUCT_TRAITS_END()
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names) 102 IPC_STRUCT_TRAITS_MEMBER(cors_exposed_header_names)
100 IPC_STRUCT_TRAITS_END() 103 IPC_STRUCT_TRAITS_END()
101 104
102 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) 105 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo)
103 IPC_STRUCT_TRAITS_MEMBER(handle_id) 106 IPC_STRUCT_TRAITS_MEMBER(handle_id)
104 IPC_STRUCT_TRAITS_MEMBER(url) 107 IPC_STRUCT_TRAITS_MEMBER(url)
105 IPC_STRUCT_TRAITS_MEMBER(state) 108 IPC_STRUCT_TRAITS_MEMBER(state)
106 IPC_STRUCT_TRAITS_MEMBER(version_id) 109 IPC_STRUCT_TRAITS_MEMBER(version_id)
107 IPC_STRUCT_TRAITS_END() 110 IPC_STRUCT_TRAITS_END()
108 111
112 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationOptions)
113 IPC_STRUCT_TRAITS_MEMBER(scope)
114 IPC_STRUCT_TRAITS_MEMBER(update_via_cache)
115 IPC_STRUCT_TRAITS_END()
116
109 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo) 117 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo)
110 IPC_STRUCT_TRAITS_MEMBER(handle_id) 118 IPC_STRUCT_TRAITS_MEMBER(handle_id)
111 IPC_STRUCT_TRAITS_MEMBER(scope) 119 IPC_STRUCT_TRAITS_MEMBER(options)
112 IPC_STRUCT_TRAITS_MEMBER(registration_id) 120 IPC_STRUCT_TRAITS_MEMBER(registration_id)
113 IPC_STRUCT_TRAITS_END() 121 IPC_STRUCT_TRAITS_END()
114 122
115 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) 123 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes)
116 IPC_STRUCT_TRAITS_MEMBER(installing) 124 IPC_STRUCT_TRAITS_MEMBER(installing)
117 IPC_STRUCT_TRAITS_MEMBER(waiting) 125 IPC_STRUCT_TRAITS_MEMBER(waiting)
118 IPC_STRUCT_TRAITS_MEMBER(active) 126 IPC_STRUCT_TRAITS_MEMBER(active)
119 IPC_STRUCT_TRAITS_END() 127 IPC_STRUCT_TRAITS_END()
120 128
121 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo) 129 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerClientInfo)
(...skipping 23 matching lines...) Expand all
145 IPC_STRUCT_TRAITS_MEMBER(is_null) 153 IPC_STRUCT_TRAITS_MEMBER(is_null)
146 IPC_STRUCT_TRAITS_END() 154 IPC_STRUCT_TRAITS_END()
147 155
148 //--------------------------------------------------------------------------- 156 //---------------------------------------------------------------------------
149 // Messages sent from the child process to the browser. 157 // Messages sent from the child process to the browser.
150 158
151 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker, 159 IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_RegisterServiceWorker,
152 int /* thread_id */, 160 int /* thread_id */,
153 int /* request_id */, 161 int /* request_id */,
154 int /* provider_id */, 162 int /* provider_id */,
155 GURL /* scope */, 163 GURL /* script_url */,
156 GURL /* script_url */) 164 content::ServiceWorkerRegistrationOptions)
157 165
158 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UpdateServiceWorker, 166 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UpdateServiceWorker,
159 int /* thread_id */, 167 int /* thread_id */,
160 int /* request_id */, 168 int /* request_id */,
161 int /* provider_id */, 169 int /* provider_id */,
162 int64_t /* registration_id */) 170 int64_t /* registration_id */)
163 171
164 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker, 172 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_UnregisterServiceWorker,
165 int /* thread_id */, 173 int /* thread_id */,
166 int /* request_id */, 174 int /* request_id */,
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 517
510 // Sent via EmbeddedWorker as a response of NavigateClient. 518 // Sent via EmbeddedWorker as a response of NavigateClient.
511 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 519 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
512 int /* request_id */, 520 int /* request_id */,
513 content::ServiceWorkerClientInfo /* client */) 521 content::ServiceWorkerClientInfo /* client */)
514 522
515 // Sent via EmbeddedWorker as an error response of NavigateClient. 523 // Sent via EmbeddedWorker as an error response of NavigateClient.
516 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 524 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
517 int /* request_id */, 525 int /* request_id */,
518 GURL /* url */) 526 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698