| 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_register_job.h" | 5 #include "content/browser/service_worker/service_worker_register_job.h" |
| 6 | 6 |
| 7 #include <iostream> |
| 7 #include <stdint.h> | 8 #include <stdint.h> |
| 8 | 9 |
| 9 #include "base/location.h" | 10 #include "base/location.h" |
| 10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 11 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "content/browser/service_worker/embedded_worker_status.h" | 13 #include "content/browser/service_worker/embedded_worker_status.h" |
| 13 #include "content/browser/service_worker/service_worker_context_core.h" | 14 #include "content/browser/service_worker/service_worker_context_core.h" |
| 14 #include "content/browser/service_worker/service_worker_job_coordinator.h" | 15 #include "content/browser/service_worker/service_worker_job_coordinator.h" |
| 15 #include "content/browser/service_worker/service_worker_metrics.h" | 16 #include "content/browser/service_worker/service_worker_metrics.h" |
| 16 #include "content/browser/service_worker/service_worker_registration.h" | 17 #include "content/browser/service_worker/service_worker_registration.h" |
| 17 #include "content/browser/service_worker/service_worker_storage.h" | 18 #include "content/browser/service_worker/service_worker_storage.h" |
| 18 #include "content/browser/service_worker/service_worker_write_to_cache_job.h" | 19 #include "content/browser/service_worker/service_worker_write_to_cache_job.h" |
| 19 #include "content/common/service_worker/service_worker_messages.h" | 20 #include "content/common/service_worker/service_worker_messages.h" |
| 20 #include "content/common/service_worker/service_worker_types.h" | 21 #include "content/common/service_worker/service_worker_types.h" |
| 21 #include "content/common/service_worker/service_worker_utils.h" | 22 #include "content/common/service_worker/service_worker_utils.h" |
| 22 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
| 23 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
| 25 #include "third_party/WebKit/public/platform/modules/serviceworker/service_worke
r_global_scope.mojom.h" |
| 24 | 26 |
| 25 namespace content { | 27 namespace content { |
| 26 | 28 |
| 27 namespace { | 29 namespace { |
| 28 | 30 |
| 29 void RunSoon(const base::Closure& closure) { | 31 void RunSoon(const base::Closure& closure) { |
| 30 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, closure); | 32 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, closure); |
| 31 } | 33 } |
| 32 | 34 |
| 33 } // namespace | 35 } // namespace |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 new_version()->force_bypass_cache_for_scripts() || | 641 new_version()->force_bypass_cache_for_scripts() || |
| 640 registration()->last_update_check().is_null()) { | 642 registration()->last_update_check().is_null()) { |
| 641 registration()->set_last_update_check(base::Time::Now()); | 643 registration()->set_last_update_check(base::Time::Now()); |
| 642 | 644 |
| 643 if (registration()->has_installed_version()) | 645 if (registration()->has_installed_version()) |
| 644 context_->storage()->UpdateLastUpdateCheckTime(registration()); | 646 context_->storage()->UpdateLastUpdateCheckTime(registration()); |
| 645 } | 647 } |
| 646 } | 648 } |
| 647 | 649 |
| 648 } // namespace content | 650 } // namespace content |
| OLD | NEW |