| 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_CHILD_CONNECTION_H_ | 5 #ifndef CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_ |
| 6 #define CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_ | 6 #define CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "base/process/process_handle.h" | 14 #include "base/process/process_handle.h" |
| 15 #include "base/sequenced_task_runner.h" | 15 #include "base/sequenced_task_runner.h" |
| 16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 17 #include "services/shell/public/cpp/identity.h" | 17 #include "services/service_manager/public/cpp/identity.h" |
| 18 #include "services/shell/public/cpp/interface_provider.h" | 18 #include "services/service_manager/public/cpp/interface_provider.h" |
| 19 #include "services/shell/public/interfaces/connector.mojom.h" | 19 #include "services/service_manager/public/interfaces/connector.mojom.h" |
| 20 | 20 |
| 21 namespace shell { | 21 namespace shell { |
| 22 class Connection; | 22 class Connection; |
| 23 class Connector; | 23 class Connector; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 | 27 |
| 28 // Helper class to establish a connection between the shell and a single child | 28 // Helper class to establish a connection between the shell and a single child |
| 29 // process. Process hosts can use this when launching new processes which | 29 // process. Process hosts can use this when launching new processes which |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 shell::InterfaceProvider remote_interfaces_; | 69 shell::InterfaceProvider remote_interfaces_; |
| 70 | 70 |
| 71 base::WeakPtrFactory<ChildConnection> weak_factory_; | 71 base::WeakPtrFactory<ChildConnection> weak_factory_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(ChildConnection); | 73 DISALLOW_COPY_AND_ASSIGN(ChildConnection); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace content | 76 } // namespace content |
| 77 | 77 |
| 78 #endif // CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_ | 78 #endif // CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_ |
| OLD | NEW |