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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "content/renderer/background_sync/background_sync_client_impl.h" | 42 #include "content/renderer/background_sync/background_sync_client_impl.h" |
43 #include "content/renderer/devtools/devtools_agent.h" | 43 #include "content/renderer/devtools/devtools_agent.h" |
44 #include "content/renderer/render_thread_impl.h" | 44 #include "content/renderer/render_thread_impl.h" |
45 #include "content/renderer/service_worker/embedded_worker_dispatcher.h" | 45 #include "content/renderer/service_worker/embedded_worker_dispatcher.h" |
46 #include "content/renderer/service_worker/embedded_worker_instance_client_impl.h
" | 46 #include "content/renderer/service_worker/embedded_worker_instance_client_impl.h
" |
47 #include "content/renderer/service_worker/service_worker_type_util.h" | 47 #include "content/renderer/service_worker/service_worker_type_util.h" |
48 #include "ipc/ipc_message.h" | 48 #include "ipc/ipc_message.h" |
49 #include "ipc/ipc_message_macros.h" | 49 #include "ipc/ipc_message_macros.h" |
50 #include "mojo/public/cpp/bindings/interface_request.h" | 50 #include "mojo/public/cpp/bindings/interface_request.h" |
51 #include "mojo/public/cpp/bindings/strong_binding.h" | 51 #include "mojo/public/cpp/bindings/strong_binding.h" |
52 #include "services/shell/public/cpp/interface_provider.h" | 52 #include "services/service_manager/public/cpp/interface_provider.h" |
53 #include "services/shell/public/cpp/interface_registry.h" | 53 #include "services/service_manager/public/cpp/interface_registry.h" |
54 #include "third_party/WebKit/public/platform/URLConversion.h" | 54 #include "third_party/WebKit/public/platform/URLConversion.h" |
55 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" | 55 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" |
56 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 56 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
57 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 57 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
58 #include "third_party/WebKit/public/platform/WebString.h" | 58 #include "third_party/WebKit/public/platform/WebString.h" |
59 #include "third_party/WebKit/public/platform/modules/background_sync/WebSyncRegi
stration.h" | 59 #include "third_party/WebKit/public/platform/modules/background_sync/WebSyncRegi
stration.h" |
60 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onData.h" | 60 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onData.h" |
61 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerClientQueryOptions.h" | 61 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerClientQueryOptions.h" |
62 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerRequest.h" | 62 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerRequest.h" |
63 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerResponse.h" | 63 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerResponse.h" |
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 } | 1136 } |
1137 | 1137 |
1138 base::WeakPtr<ServiceWorkerContextClient> | 1138 base::WeakPtr<ServiceWorkerContextClient> |
1139 ServiceWorkerContextClient::GetWeakPtr() { | 1139 ServiceWorkerContextClient::GetWeakPtr() { |
1140 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); | 1140 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); |
1141 DCHECK(context_); | 1141 DCHECK(context_); |
1142 return context_->weak_factory.GetWeakPtr(); | 1142 return context_->weak_factory.GetWeakPtr(); |
1143 } | 1143 } |
1144 | 1144 |
1145 } // namespace content | 1145 } // namespace content |
OLD | NEW |