| 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_PUBLIC_APPLICATION_APPLICATION_CONNECTION_H_ | 5 #ifndef MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
| 6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_CONNECTION_H_ | 6 #define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "mojo/public/cpp/application/lib/interface_factory_connector.h" | 10 #include "mojo/application/public/cpp/lib/interface_factory_connector.h" |
| 11 #include "mojo/public/interfaces/application/service_provider.mojom.h" | 11 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 | 14 |
| 15 class ServiceConnector; | 15 class ServiceConnector; |
| 16 | 16 |
| 17 // Represents a connection to another application. An instance of this class is | 17 // Represents a connection to another application. An instance of this class is |
| 18 // passed to ApplicationDelegate's ConfigureIncomingConnection() method each | 18 // passed to ApplicationDelegate's ConfigureIncomingConnection() method each |
| 19 // time a connection is made to this app, and to ApplicationDelegate's | 19 // time a connection is made to this app, and to ApplicationDelegate's |
| 20 // ConfigureOutgoingConnection() method when the app connects to another. | 20 // ConfigureOutgoingConnection() method when the app connects to another. |
| 21 // | 21 // |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // Caller does not take ownership. | 88 // Caller does not take ownership. |
| 89 virtual ServiceProvider* GetServiceProvider() = 0; | 89 virtual ServiceProvider* GetServiceProvider() = 0; |
| 90 | 90 |
| 91 private: | 91 private: |
| 92 virtual void SetServiceConnectorForName(ServiceConnector* service_connector, | 92 virtual void SetServiceConnectorForName(ServiceConnector* service_connector, |
| 93 const std::string& name) = 0; | 93 const std::string& name) = 0; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace mojo | 96 } // namespace mojo |
| 97 | 97 |
| 98 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_CONNECTION_H_ | 98 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
| OLD | NEW |