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 <vector> | 7 #include <vector> |
8 | 8 |
| 9 #include "base/threading/thread_task_runner_handle.h" |
9 #include "content/browser/service_worker/embedded_worker_status.h" | 10 #include "content/browser/service_worker/embedded_worker_status.h" |
10 #include "content/browser/service_worker/service_worker_context_core.h" | 11 #include "content/browser/service_worker/service_worker_context_core.h" |
11 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 12 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
12 #include "content/browser/service_worker/service_worker_info.h" | 13 #include "content/browser/service_worker/service_worker_info.h" |
13 #include "content/browser/service_worker/service_worker_metrics.h" | 14 #include "content/browser/service_worker/service_worker_metrics.h" |
14 #include "content/browser/service_worker/service_worker_register_job.h" | 15 #include "content/browser/service_worker/service_worker_register_job.h" |
15 #include "content/common/service_worker/service_worker_messages.h" | 16 #include "content/common/service_worker/service_worker_messages.h" |
16 #include "content/common/service_worker/service_worker_utils.h" | 17 #include "content/common/service_worker/service_worker_utils.h" |
17 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
18 | 19 |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 if (!context_) { | 514 if (!context_) { |
514 callback.Run(SERVICE_WORKER_ERROR_ABORT); | 515 callback.Run(SERVICE_WORKER_ERROR_ABORT); |
515 return; | 516 return; |
516 } | 517 } |
517 context_->storage()->NotifyDoneInstallingRegistration( | 518 context_->storage()->NotifyDoneInstallingRegistration( |
518 this, version.get(), status); | 519 this, version.get(), status); |
519 callback.Run(status); | 520 callback.Run(status); |
520 } | 521 } |
521 | 522 |
522 } // namespace content | 523 } // namespace content |
OLD | NEW |