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/browser/service_manager/service_manager_context.h" | 5 #include "content/browser/service_manager/service_manager_context.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "content/public/browser/utility_process_host.h" | 23 #include "content/public/browser/utility_process_host.h" |
24 #include "content/public/browser/utility_process_host_client.h" | 24 #include "content/public/browser/utility_process_host_client.h" |
25 #include "content/public/common/content_client.h" | 25 #include "content/public/common/content_client.h" |
26 #include "content/public/common/service_manager_connection.h" | 26 #include "content/public/common/service_manager_connection.h" |
27 #include "content/public/common/service_names.h" | 27 #include "content/public/common/service_names.h" |
28 #include "mojo/edk/embedder/embedder.h" | 28 #include "mojo/edk/embedder/embedder.h" |
29 #include "services/catalog/catalog.h" | 29 #include "services/catalog/catalog.h" |
30 #include "services/catalog/manifest_provider.h" | 30 #include "services/catalog/manifest_provider.h" |
31 #include "services/catalog/store.h" | 31 #include "services/catalog/store.h" |
32 #include "services/file/public/cpp/constants.h" | 32 #include "services/file/public/cpp/constants.h" |
33 #include "services/shell/connect_params.h" | 33 #include "services/service_manager/connect_params.h" |
34 #include "services/shell/native_runner.h" | 34 #include "services/service_manager/native_runner.h" |
35 #include "services/shell/public/cpp/connector.h" | 35 #include "services/service_manager/public/cpp/connector.h" |
36 #include "services/shell/public/cpp/service.h" | 36 #include "services/service_manager/public/cpp/service.h" |
37 #include "services/shell/public/interfaces/service.mojom.h" | 37 #include "services/service_manager/public/interfaces/service.mojom.h" |
38 #include "services/shell/runner/common/client_util.h" | 38 #include "services/service_manager/runner/common/client_util.h" |
39 #include "services/shell/runner/host/in_process_native_runner.h" | 39 #include "services/service_manager/runner/host/in_process_native_runner.h" |
40 #include "services/shell/service_manager.h" | 40 #include "services/service_manager/service_manager.h" |
41 | 41 |
42 namespace content { | 42 namespace content { |
43 | 43 |
44 namespace { | 44 namespace { |
45 | 45 |
46 base::LazyInstance<std::unique_ptr<shell::Connector>>::Leaky | 46 base::LazyInstance<std::unique_ptr<shell::Connector>>::Leaky |
47 g_io_thread_connector = LAZY_INSTANCE_INITIALIZER; | 47 g_io_thread_connector = LAZY_INSTANCE_INITIALIZER; |
48 | 48 |
49 void DestroyConnectorOnIOThread() { g_io_thread_connector.Get().reset(); } | 49 void DestroyConnectorOnIOThread() { g_io_thread_connector.Get().reset(); } |
50 | 50 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 base::Bind(&DestroyConnectorOnIOThread)); | 300 base::Bind(&DestroyConnectorOnIOThread)); |
301 } | 301 } |
302 | 302 |
303 // static | 303 // static |
304 shell::Connector* ServiceManagerContext::GetConnectorForIOThread() { | 304 shell::Connector* ServiceManagerContext::GetConnectorForIOThread() { |
305 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 305 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
306 return g_io_thread_connector.Get().get(); | 306 return g_io_thread_connector.Get().get(); |
307 } | 307 } |
308 | 308 |
309 } // namespace content | 309 } // namespace content |
OLD | NEW |