OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/service_worker/service_worker_dispatcher_host.h" | 5 #include "content/browser/service_worker/service_worker_dispatcher_host.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "content/browser/service_worker/embedded_worker_registry.h" | 8 #include "content/browser/service_worker/embedded_worker_registry.h" |
9 #include "content/browser/service_worker/service_worker_context_core.h" | 9 #include "content/browser/service_worker/service_worker_context_core.h" |
10 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 10 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
11 #include "content/browser/service_worker/service_worker_provider_host.h" | 11 #include "content/browser/service_worker/service_worker_provider_host.h" |
12 #include "content/common/service_worker_messages.h" | 12 #include "content/common/service_worker/embedded_worker_messages.h" |
| 13 #include "content/common/service_worker/service_worker_messages.h" |
13 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
14 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" | 15 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" |
15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
16 | 17 |
17 using blink::WebServiceWorkerError; | 18 using blink::WebServiceWorkerError; |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
21 const char kDisabledErrorMessage[] = | 22 const char kDisabledErrorMessage[] = |
22 "ServiceWorker is disabled"; | 23 "ServiceWorker is disabled"; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 ServiceWorkerRegistrationStatus status) { | 211 ServiceWorkerRegistrationStatus status) { |
211 base::string16 error_message; | 212 base::string16 error_message; |
212 blink::WebServiceWorkerError::ErrorType error_type; | 213 blink::WebServiceWorkerError::ErrorType error_type; |
213 GetServiceWorkerRegistrationStatusResponse( | 214 GetServiceWorkerRegistrationStatusResponse( |
214 status, &error_type, &error_message); | 215 status, &error_type, &error_message); |
215 Send(new ServiceWorkerMsg_ServiceWorkerRegistrationError( | 216 Send(new ServiceWorkerMsg_ServiceWorkerRegistrationError( |
216 thread_id, request_id, error_type, error_message)); | 217 thread_id, request_id, error_type, error_message)); |
217 } | 218 } |
218 | 219 |
219 } // namespace content | 220 } // namespace content |
OLD | NEW |