OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/renderer/service_worker/service_worker_context_client.h" | 5 #include "content/renderer/service_worker/service_worker_context_client.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/thread_task_runner_handle.h" | |
15 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
16 #include "base/threading/thread_local.h" | 15 #include "base/threading/thread_local.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
18 #include "content/child/notifications/notification_data_conversions.h" | 18 #include "content/child/notifications/notification_data_conversions.h" |
19 #include "content/child/request_extra_data.h" | 19 #include "content/child/request_extra_data.h" |
20 #include "content/child/service_worker/service_worker_dispatcher.h" | 20 #include "content/child/service_worker/service_worker_dispatcher.h" |
21 #include "content/child/service_worker/service_worker_handle_reference.h" | 21 #include "content/child/service_worker/service_worker_handle_reference.h" |
22 #include "content/child/service_worker/service_worker_network_provider.h" | 22 #include "content/child/service_worker/service_worker_network_provider.h" |
23 #include "content/child/service_worker/service_worker_provider_context.h" | 23 #include "content/child/service_worker/service_worker_provider_context.h" |
24 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" | 24 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" |
25 #include "content/child/service_worker/web_service_worker_impl.h" | 25 #include "content/child/service_worker/web_service_worker_impl.h" |
26 #include "content/child/service_worker/web_service_worker_provider_impl.h" | 26 #include "content/child/service_worker/web_service_worker_provider_impl.h" |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 } | 1024 } |
1025 | 1025 |
1026 base::WeakPtr<ServiceWorkerContextClient> | 1026 base::WeakPtr<ServiceWorkerContextClient> |
1027 ServiceWorkerContextClient::GetWeakPtr() { | 1027 ServiceWorkerContextClient::GetWeakPtr() { |
1028 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); | 1028 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); |
1029 DCHECK(context_); | 1029 DCHECK(context_); |
1030 return context_->weak_factory.GetWeakPtr(); | 1030 return context_->weak_factory.GetWeakPtr(); |
1031 } | 1031 } |
1032 | 1032 |
1033 } // namespace content | 1033 } // namespace content |
OLD | NEW |