| 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_PUBLIC_APPLICATION_APPLICATION_CONNECTION_H_ |
| 6 #define MOJO_PUBLIC_APPLICATION_APPLICATION_CONNECTION_H_ | 6 #define MOJO_PUBLIC_APPLICATION_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/public/cpp/application/lib/interface_factory_connector.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // application handles multiple URLs. Note that this is the URL after all | 55 // application handles multiple URLs. Note that this is the URL after all |
| 56 // URL rewriting and HTTP redirects have been performed. | 56 // URL rewriting and HTTP redirects have been performed. |
| 57 // | 57 // |
| 58 // When ApplicationConnection is representing and outgoing connection, this | 58 // When ApplicationConnection is representing and outgoing connection, this |
| 59 // will be the same as the value returned by GetRemoveApplicationURL(). | 59 // will be the same as the value returned by GetRemoveApplicationURL(). |
| 60 virtual const std::string& GetConnectionURL() = 0; | 60 virtual const std::string& GetConnectionURL() = 0; |
| 61 | 61 |
| 62 // Returns the URL identifying the remote application on this connection. | 62 // Returns the URL identifying the remote application on this connection. |
| 63 virtual const std::string& GetRemoteApplicationURL() = 0; | 63 virtual const std::string& GetRemoteApplicationURL() = 0; |
| 64 | 64 |
| 65 // Returns the raw proxy to the remote application's ServiceProvider | |
| 66 // interface. Most applications will just use ConnectToService() instead. | |
| 67 // Caller does not take ownership. | |
| 68 virtual ServiceProvider* GetServiceProvider() = 0; | |
| 69 | |
| 70 private: | 65 private: |
| 71 virtual void SetServiceConnectorForName(ServiceConnector* service_connector, | 66 virtual void SetServiceConnectorForName(ServiceConnector* service_connector, |
| 72 const std::string& name) = 0; | 67 const std::string& name) = 0; |
| 73 }; | 68 }; |
| 74 | 69 |
| 75 } // namespace mojo | 70 } // namespace mojo |
| 76 | 71 |
| 77 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_CONNECTION_H_ | 72 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_CONNECTION_H_ |
| OLD | NEW |