OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_SHELL_PUBLIC_CPP_CONNECTION_H_ | 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTION_H_ |
6 #define SERVICES_SHELL_PUBLIC_CPP_CONNECTION_H_ | 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTION_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "services/shell/public/cpp/identity.h" | 9 #include "services/service_manager/public/cpp/identity.h" |
10 #include "services/shell/public/cpp/interface_provider.h" | 10 #include "services/service_manager/public/cpp/interface_provider.h" |
11 #include "services/shell/public/interfaces/connector.mojom.h" | 11 #include "services/service_manager/public/interfaces/connector.mojom.h" |
12 | 12 |
13 namespace shell { | 13 namespace shell { |
14 | 14 |
15 class InterfaceProvider; | 15 class InterfaceProvider; |
16 | 16 |
17 // Represents a connection to another application. An implementation of this | 17 // Represents a connection to another application. An implementation of this |
18 // interface is returned from Connector::Connect(). | 18 // interface is returned from Connector::Connect(). |
19 class Connection { | 19 class Connection { |
20 public: | 20 public: |
21 virtual ~Connection() {} | 21 virtual ~Connection() {} |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 // Returns an object encapsulating a remote InterfaceProvider. | 85 // Returns an object encapsulating a remote InterfaceProvider. |
86 virtual InterfaceProvider* GetRemoteInterfaces() = 0; | 86 virtual InterfaceProvider* GetRemoteInterfaces() = 0; |
87 | 87 |
88 protected: | 88 protected: |
89 virtual base::WeakPtr<Connection> GetWeakPtr() = 0; | 89 virtual base::WeakPtr<Connection> GetWeakPtr() = 0; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace shell | 92 } // namespace shell |
93 | 93 |
94 #endif // SERVICES_SHELL_PUBLIC_CPP_CONNECTION_H_ | 94 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_CONNECTION_H_ |
OLD | NEW |