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

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: fix IPC Created 3 years, 4 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
« no previous file with comments | « content/common/DEPS ('k') | content/common/service_worker/service_worker_types.h » ('j') | 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 26 matching lines...) Expand all
37 37
38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerState, 38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerState,
39 blink::kWebServiceWorkerStateLast) 39 blink::kWebServiceWorkerStateLast)
40 40
41 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseError, 41 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerResponseError,
42 blink::kWebServiceWorkerResponseErrorLast) 42 blink::kWebServiceWorkerResponseErrorLast)
43 43
44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType, 44 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerClientType,
45 blink::kWebServiceWorkerClientTypeLast) 45 blink::kWebServiceWorkerClientTypeLast)
46 46
47 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebServiceWorkerUpdateViaCache,
48 blink::WebServiceWorkerUpdateViaCache::kLast)
49
47 IPC_ENUM_TRAITS_MAX_VALUE(blink::mojom::FetchResponseType, 50 IPC_ENUM_TRAITS_MAX_VALUE(blink::mojom::FetchResponseType,
48 blink::mojom::FetchResponseType::kLast) 51 blink::mojom::FetchResponseType::kLast)
49 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)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 107
105 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo) 108 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerObjectInfo)
106 IPC_STRUCT_TRAITS_MEMBER(handle_id) 109 IPC_STRUCT_TRAITS_MEMBER(handle_id)
107 IPC_STRUCT_TRAITS_MEMBER(url) 110 IPC_STRUCT_TRAITS_MEMBER(url)
108 IPC_STRUCT_TRAITS_MEMBER(state) 111 IPC_STRUCT_TRAITS_MEMBER(state)
109 IPC_STRUCT_TRAITS_MEMBER(version_id) 112 IPC_STRUCT_TRAITS_MEMBER(version_id)
110 IPC_STRUCT_TRAITS_END() 113 IPC_STRUCT_TRAITS_END()
111 114
112 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationOptions) 115 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationOptions)
113 IPC_STRUCT_TRAITS_MEMBER(scope) 116 IPC_STRUCT_TRAITS_MEMBER(scope)
117 IPC_STRUCT_TRAITS_MEMBER(update_via_cache)
114 IPC_STRUCT_TRAITS_END() 118 IPC_STRUCT_TRAITS_END()
115 119
116 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo) 120 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerRegistrationObjectInfo)
117 IPC_STRUCT_TRAITS_MEMBER(handle_id) 121 IPC_STRUCT_TRAITS_MEMBER(handle_id)
118 IPC_STRUCT_TRAITS_MEMBER(options) 122 IPC_STRUCT_TRAITS_MEMBER(options)
119 IPC_STRUCT_TRAITS_MEMBER(registration_id) 123 IPC_STRUCT_TRAITS_MEMBER(registration_id)
120 IPC_STRUCT_TRAITS_END() 124 IPC_STRUCT_TRAITS_END()
121 125
122 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes) 126 IPC_STRUCT_TRAITS_BEGIN(content::ServiceWorkerVersionAttributes)
123 IPC_STRUCT_TRAITS_MEMBER(installing) 127 IPC_STRUCT_TRAITS_MEMBER(installing)
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 512
509 // Sent via EmbeddedWorker as a response of NavigateClient. 513 // Sent via EmbeddedWorker as a response of NavigateClient.
510 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 514 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
511 int /* request_id */, 515 int /* request_id */,
512 content::ServiceWorkerClientInfo /* client */) 516 content::ServiceWorkerClientInfo /* client */)
513 517
514 // Sent via EmbeddedWorker as an error response of NavigateClient. 518 // Sent via EmbeddedWorker as an error response of NavigateClient.
515 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 519 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
516 int /* request_id */, 520 int /* request_id */,
517 GURL /* url */) 521 GURL /* url */)
OLDNEW
« no previous file with comments | « content/common/DEPS ('k') | content/common/service_worker/service_worker_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698