OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ | 5 #ifndef CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ |
6 #define CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ | 6 #define CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/sequenced_task_runner.h" | 13 #include "base/sequenced_task_runner.h" |
14 #include "content/public/common/service_manager_connection.h" | 14 #include "content/public/common/service_manager_connection.h" |
15 #include "mojo/public/cpp/bindings/string.h" | 15 #include "mojo/public/cpp/bindings/string.h" |
16 #include "mojo/public/cpp/system/message_pipe.h" | 16 #include "mojo/public/cpp/system/message_pipe.h" |
17 #include "services/shell/public/cpp/identity.h" | 17 #include "services/service_manager/public/cpp/identity.h" |
18 #include "services/shell/public/interfaces/service.mojom.h" | 18 #include "services/service_manager/public/interfaces/service.mojom.h" |
19 | 19 |
20 namespace shell { | 20 namespace shell { |
21 class Connector; | 21 class Connector; |
22 } | 22 } |
23 | 23 |
24 namespace content { | 24 namespace content { |
25 | 25 |
26 class EmbeddedServiceRunner; | 26 class EmbeddedServiceRunner; |
27 | 27 |
28 class ServiceManagerConnectionImpl : public ServiceManagerConnection { | 28 class ServiceManagerConnectionImpl : public ServiceManagerConnection { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 std::unordered_map<std::string, ServiceRequestHandler> request_handlers_; | 73 std::unordered_map<std::string, ServiceRequestHandler> request_handlers_; |
74 | 74 |
75 base::WeakPtrFactory<ServiceManagerConnectionImpl> weak_factory_; | 75 base::WeakPtrFactory<ServiceManagerConnectionImpl> weak_factory_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(ServiceManagerConnectionImpl); | 77 DISALLOW_COPY_AND_ASSIGN(ServiceManagerConnectionImpl); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace content | 80 } // namespace content |
81 | 81 |
82 #endif // CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ | 82 #endif // CONTENT_COMMON_SERVICE_MANAGER_SERVICE_MANAGER_CONNECTION_IMPL_H_ |
OLD | NEW |