OLD | NEW |
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 #include "content/common/service_worker/service_worker_types.h" | 5 #include "content/common/service_worker/service_worker_types.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 const char kServiceWorkerRegisterErrorPrefix[] = | 9 const char kServiceWorkerRegisterErrorPrefix[] = |
10 "Failed to register a ServiceWorker: "; | 10 "Failed to register a ServiceWorker: "; |
| 11 const char kServiceWorkerUpdateErrorPrefix[] = |
| 12 "Failed to update a ServiceWorker: "; |
11 const char kServiceWorkerUnregisterErrorPrefix[] = | 13 const char kServiceWorkerUnregisterErrorPrefix[] = |
12 "Failed to unregister a ServiceWorkerRegistration: "; | 14 "Failed to unregister a ServiceWorkerRegistration: "; |
13 const char kServiceWorkerGetRegistrationErrorPrefix[] = | 15 const char kServiceWorkerGetRegistrationErrorPrefix[] = |
14 "Failed to get a ServiceWorkerRegistration: "; | 16 "Failed to get a ServiceWorkerRegistration: "; |
15 const char kServiceWorkerGetRegistrationsErrorPrefix[] = | 17 const char kServiceWorkerGetRegistrationsErrorPrefix[] = |
16 "Failed to get ServiceWorkerRegistration objects: "; | 18 "Failed to get ServiceWorkerRegistration objects: "; |
17 const char kFetchScriptError[] = | 19 const char kFetchScriptError[] = |
18 "An unknown error occurred when fetching the script."; | 20 "An unknown error occurred when fetching the script."; |
19 | 21 |
20 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest() | 22 ServiceWorkerFetchRequest::ServiceWorkerFetchRequest() |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 : handle_id(kInvalidServiceWorkerRegistrationHandleId), | 87 : handle_id(kInvalidServiceWorkerRegistrationHandleId), |
86 registration_id(kInvalidServiceWorkerRegistrationId) { | 88 registration_id(kInvalidServiceWorkerRegistrationId) { |
87 } | 89 } |
88 | 90 |
89 ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions() | 91 ServiceWorkerClientQueryOptions::ServiceWorkerClientQueryOptions() |
90 : client_type(blink::WebServiceWorkerClientTypeWindow), | 92 : client_type(blink::WebServiceWorkerClientTypeWindow), |
91 include_uncontrolled(false) { | 93 include_uncontrolled(false) { |
92 } | 94 } |
93 | 95 |
94 } // namespace content | 96 } // namespace content |
OLD | NEW |