| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "ipc/ipc_message_macros.h" | 50 #include "ipc/ipc_message_macros.h" |
| 51 #include "mojo/public/cpp/bindings/interface_request.h" | 51 #include "mojo/public/cpp/bindings/interface_request.h" |
| 52 #include "mojo/public/cpp/bindings/strong_binding.h" | 52 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 53 #include "services/service_manager/public/cpp/interface_provider.h" | 53 #include "services/service_manager/public/cpp/interface_provider.h" |
| 54 #include "services/service_manager/public/cpp/interface_registry.h" | 54 #include "services/service_manager/public/cpp/interface_registry.h" |
| 55 #include "third_party/WebKit/public/platform/URLConversion.h" | 55 #include "third_party/WebKit/public/platform/URLConversion.h" |
| 56 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" | 56 #include "third_party/WebKit/public/platform/WebMessagePortChannel.h" |
| 57 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" | 57 #include "third_party/WebKit/public/platform/WebReferrerPolicy.h" |
| 58 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 58 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
| 59 #include "third_party/WebKit/public/platform/WebString.h" | 59 #include "third_party/WebKit/public/platform/WebString.h" |
| 60 #include "third_party/WebKit/public/platform/modules/background_sync/WebSyncRegi
stration.h" | |
| 61 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onData.h" | 60 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onData.h" |
| 62 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerClientQueryOptions.h" | 61 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerClientQueryOptions.h" |
| 63 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerError.h" | 62 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerError.h" |
| 64 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerRequest.h" | 63 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerRequest.h" |
| 65 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerResponse.h" | 64 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerResponse.h" |
| 66 #include "third_party/WebKit/public/web/WebDataSource.h" | 65 #include "third_party/WebKit/public/web/WebDataSource.h" |
| 67 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo
ntextClient.h" | 66 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo
ntextClient.h" |
| 68 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo
ntextProxy.h" | 67 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerCo
ntextProxy.h" |
| 69 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerNe
tworkProvider.h" | 68 #include "third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerNe
tworkProvider.h" |
| 70 | 69 |
| (...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1296 } | 1295 } |
| 1297 | 1296 |
| 1298 base::WeakPtr<ServiceWorkerContextClient> | 1297 base::WeakPtr<ServiceWorkerContextClient> |
| 1299 ServiceWorkerContextClient::GetWeakPtr() { | 1298 ServiceWorkerContextClient::GetWeakPtr() { |
| 1300 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); | 1299 DCHECK(worker_task_runner_->RunsTasksOnCurrentThread()); |
| 1301 DCHECK(context_); | 1300 DCHECK(context_); |
| 1302 return context_->weak_factory.GetWeakPtr(); | 1301 return context_->weak_factory.GetWeakPtr(); |
| 1303 } | 1302 } |
| 1304 | 1303 |
| 1305 } // namespace content | 1304 } // namespace content |
| OLD | NEW |