| 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_registration.h" | 5 #include "content/browser/service_worker/service_worker_registration.h" |
| 6 | 6 |
| 7 #include "content/browser/service_worker/service_worker_context_core.h" | 7 #include "content/browser/service_worker/service_worker_context_core.h" |
| 8 #include "content/browser/service_worker/service_worker_info.h" | 8 #include "content/browser/service_worker/service_worker_info.h" |
| 9 #include "content/browser/service_worker/service_worker_metrics.h" | 9 #include "content/browser/service_worker/service_worker_metrics.h" |
| 10 #include "content/browser/service_worker/service_worker_register_job.h" | 10 #include "content/browser/service_worker/service_worker_register_job.h" |
| 11 #include "content/browser/service_worker/service_worker_utils.h" | 11 #include "content/common/service_worker/service_worker_utils.h" |
| 12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 13 | 13 |
| 14 namespace content { | 14 namespace content { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 ServiceWorkerVersionInfo GetVersionInfo(ServiceWorkerVersion* version) { | 18 ServiceWorkerVersionInfo GetVersionInfo(ServiceWorkerVersion* version) { |
| 19 if (!version) | 19 if (!version) |
| 20 return ServiceWorkerVersionInfo(); | 20 return ServiceWorkerVersionInfo(); |
| 21 return version->GetInfo(); | 21 return version->GetInfo(); |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 if (!context_) { | 401 if (!context_) { |
| 402 callback.Run(SERVICE_WORKER_ERROR_ABORT); | 402 callback.Run(SERVICE_WORKER_ERROR_ABORT); |
| 403 return; | 403 return; |
| 404 } | 404 } |
| 405 context_->storage()->NotifyDoneInstallingRegistration( | 405 context_->storage()->NotifyDoneInstallingRegistration( |
| 406 this, version.get(), status); | 406 this, version.get(), status); |
| 407 callback.Run(status); | 407 callback.Run(status); |
| 408 } | 408 } |
| 409 | 409 |
| 410 } // namespace content | 410 } // namespace content |
| OLD | NEW |