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

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

Issue 1283273002: Service Worker: Change last update check location and HTTP cache bypass rule (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comments. Created 5 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
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 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 5 #ifndef CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 6 #define CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 static const int kInvalidServiceWorkerRegistrationHandleId = -1; 48 static const int kInvalidServiceWorkerRegistrationHandleId = -1;
49 static const int kInvalidServiceWorkerProviderId = -1; 49 static const int kInvalidServiceWorkerProviderId = -1;
50 static const int64 kInvalidServiceWorkerRegistrationId = -1; 50 static const int64 kInvalidServiceWorkerRegistrationId = -1;
51 static const int64 kInvalidServiceWorkerVersionId = -1; 51 static const int64 kInvalidServiceWorkerVersionId = -1;
52 static const int64 kInvalidServiceWorkerResourceId = -1; 52 static const int64 kInvalidServiceWorkerResourceId = -1;
53 static const int64 kInvalidServiceWorkerResponseId = -1; 53 static const int64 kInvalidServiceWorkerResponseId = -1;
54 static const int kInvalidEmbeddedWorkerThreadId = -1; 54 static const int kInvalidEmbeddedWorkerThreadId = -1;
55 static const int kInvalidServiceWorkerClientId = 0; 55 static const int kInvalidServiceWorkerClientId = 0;
56 56
57 // The HTTP cache is bypassed for Service Worker scripts if the last network 57 // The HTTP cache is bypassed for Service Worker scripts if the last network
58 // fetch occurred over 24 hours ago. 58 // fetch occurred over min(SW's max-age, 86400) seconds ago.
59 static const int kServiceWorkerScriptMaxCacheAgeInHours = 24; 59 static const int kServiceWorkerScriptMaxCacheAgeInSeconds = 86400;
60 60
61 // ServiceWorker provider type. 61 // ServiceWorker provider type.
62 enum ServiceWorkerProviderType { 62 enum ServiceWorkerProviderType {
63 SERVICE_WORKER_PROVIDER_UNKNOWN, 63 SERVICE_WORKER_PROVIDER_UNKNOWN,
64 64
65 // For ServiceWorker clients. 65 // For ServiceWorker clients.
66 SERVICE_WORKER_PROVIDER_FOR_WINDOW, 66 SERVICE_WORKER_PROVIDER_FOR_WINDOW,
67 SERVICE_WORKER_PROVIDER_FOR_WORKER, 67 SERVICE_WORKER_PROVIDER_FOR_WORKER,
68 SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER, 68 SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER,
69 69
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 struct ServiceWorkerClientQueryOptions { 207 struct ServiceWorkerClientQueryOptions {
208 ServiceWorkerClientQueryOptions(); 208 ServiceWorkerClientQueryOptions();
209 blink::WebServiceWorkerClientType client_type; 209 blink::WebServiceWorkerClientType client_type;
210 bool include_uncontrolled; 210 bool include_uncontrolled;
211 }; 211 };
212 212
213 } // namespace content 213 } // namespace content
214 214
215 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_ 215 #endif // CONTENT_COMMON_SERVICE_WORKER_SERVICE_WORKER_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698