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 MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ | 5 #ifndef MOJO_SHELL_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
6 #define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ | 6 #define MOJO_SHELL_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "mojo/application/public/cpp/lib/interface_factory_connector.h" | 14 #include "mojo/shell/public/cpp/lib/interface_factory_connector.h" |
15 #include "mojo/application/public/interfaces/service_provider.mojom.h" | 15 #include "mojo/shell/public/interfaces/service_provider.mojom.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 | 18 |
19 class ServiceConnector; | 19 class ServiceConnector; |
20 | 20 |
21 // Represents a connection to another application. An instance of this class is | 21 // Represents a connection to another application. An instance of this class is |
22 // passed to ApplicationDelegate's ConfigureIncomingConnection() method each | 22 // passed to ApplicationDelegate's ConfigureIncomingConnection() method each |
23 // time a connection is made to this app, and to ApplicationDelegate's | 23 // time a connection is made to this app, and to ApplicationDelegate's |
24 // ConfigureOutgoingConnection() method when the app connects to another. | 24 // ConfigureOutgoingConnection() method when the app connects to another. |
25 // | 25 // |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Returns true if the connector was set, false if it was not set (e.g. by | 134 // Returns true if the connector was set, false if it was not set (e.g. by |
135 // some filtering policy preventing this interface from being exposed). | 135 // some filtering policy preventing this interface from being exposed). |
136 virtual bool SetServiceConnectorForName(ServiceConnector* service_connector, | 136 virtual bool SetServiceConnectorForName(ServiceConnector* service_connector, |
137 const std::string& name) = 0; | 137 const std::string& name) = 0; |
138 | 138 |
139 virtual base::WeakPtr<ApplicationConnection> GetWeakPtr() = 0; | 139 virtual base::WeakPtr<ApplicationConnection> GetWeakPtr() = 0; |
140 }; | 140 }; |
141 | 141 |
142 } // namespace mojo | 142 } // namespace mojo |
143 | 143 |
144 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ | 144 #endif // MOJO_SHELL_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
OLD | NEW |