| 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_version.h" | 5 #include "content/browser/service_worker/service_worker_version.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/metrics/histogram_macros.h" | 13 #include "base/metrics/histogram_macros.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/thread_task_runner_handle.h" | 18 #include "base/thread_task_runner_handle.h" |
| 19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 20 #include "content/browser/bad_message.h" | 20 #include "content/browser/bad_message.h" |
| 21 #include "content/browser/child_process_security_policy_impl.h" | 21 #include "content/browser/child_process_security_policy_impl.h" |
| 22 #include "content/browser/message_port_message_filter.h" | 22 #include "content/browser/message_port_message_filter.h" |
| 23 #include "content/browser/message_port_service.h" | 23 #include "content/browser/message_port_service.h" |
| 24 #include "content/browser/service_worker/embedded_worker_instance.h" | 24 #include "content/browser/service_worker/embedded_worker_instance.h" |
| 25 #include "content/browser/service_worker/embedded_worker_registry.h" | 25 #include "content/browser/service_worker/embedded_worker_registry.h" |
| 26 #include "content/browser/service_worker/service_worker_context_core.h" | 26 #include "content/browser/service_worker/service_worker_context_core.h" |
| 27 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 27 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
| 28 #include "content/browser/service_worker/service_worker_metrics.h" | 28 #include "content/browser/service_worker/service_worker_metrics.h" |
| 29 #include "content/browser/service_worker/service_worker_registration.h" | 29 #include "content/browser/service_worker/service_worker_registration.h" |
| 30 #include "content/browser/service_worker/service_worker_utils.h" | |
| 31 #include "content/browser/storage_partition_impl.h" | 30 #include "content/browser/storage_partition_impl.h" |
| 32 #include "content/common/service_worker/service_worker_messages.h" | 31 #include "content/common/service_worker/service_worker_messages.h" |
| 33 #include "content/common/service_worker/service_worker_type_converters.h" | 32 #include "content/common/service_worker/service_worker_type_converters.h" |
| 33 #include "content/common/service_worker/service_worker_utils.h" |
| 34 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
| 35 #include "content/public/browser/content_browser_client.h" | 35 #include "content/public/browser/content_browser_client.h" |
| 36 #include "content/public/browser/page_navigator.h" | 36 #include "content/public/browser/page_navigator.h" |
| 37 #include "content/public/browser/render_frame_host.h" | 37 #include "content/public/browser/render_frame_host.h" |
| 38 #include "content/public/browser/render_process_host.h" | 38 #include "content/public/browser/render_process_host.h" |
| 39 #include "content/public/browser/web_contents.h" | 39 #include "content/public/browser/web_contents.h" |
| 40 #include "content/public/browser/web_contents_observer.h" | 40 #include "content/public/browser/web_contents_observer.h" |
| 41 #include "content/public/common/background_sync.mojom.h" | 41 #include "content/public/common/background_sync.mojom.h" |
| 42 #include "content/public/common/child_process_host.h" | 42 #include "content/public/common/child_process_host.h" |
| 43 #include "content/public/common/content_client.h" | 43 #include "content/public/common/content_client.h" |
| (...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2169 base::string16()); | 2169 base::string16()); |
| 2170 service_port_dispatcher_.reset(); | 2170 service_port_dispatcher_.reset(); |
| 2171 } | 2171 } |
| 2172 | 2172 |
| 2173 void ServiceWorkerVersion::OnBackgroundSyncDispatcherConnectionError() { | 2173 void ServiceWorkerVersion::OnBackgroundSyncDispatcherConnectionError() { |
| 2174 RunIDMapCallbacks(&sync_requests_, SERVICE_WORKER_ERROR_FAILED); | 2174 RunIDMapCallbacks(&sync_requests_, SERVICE_WORKER_ERROR_FAILED); |
| 2175 background_sync_dispatcher_.reset(); | 2175 background_sync_dispatcher_.reset(); |
| 2176 } | 2176 } |
| 2177 | 2177 |
| 2178 } // namespace content | 2178 } // namespace content |
| OLD | NEW |