| 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/service_connector.h" | 10 #include "mojo/public/cpp/application/lib/service_connector.h" |
| 11 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
| 11 | 12 |
| 12 namespace mojo { | 13 namespace mojo { |
| 13 | 14 |
| 14 // An instance of this class is passed to | 15 // An instance of this class is passed to |
| 15 // ApplicationDelegate's ConfigureIncomingConnection() method each time a | 16 // ApplicationDelegate's ConfigureIncomingConnection() method each time a |
| 16 // connection is made to this app, and to ApplicationDelegate's | 17 // connection is made to this app, and to ApplicationDelegate's |
| 17 // ConfigureOutgoingConnection() method when the app connects to | 18 // ConfigureOutgoingConnection() method when the app connects to |
| 18 // another. | 19 // another. |
| 19 // | 20 // |
| 20 // To use define a class that implements your specific service api, e.g. FooImpl | 21 // To use define a class that implements your specific service api, e.g. FooImpl |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual ServiceProvider* GetServiceProvider() = 0; | 73 virtual ServiceProvider* GetServiceProvider() = 0; |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 virtual void AddServiceConnector( | 76 virtual void AddServiceConnector( |
| 76 internal::ServiceConnectorBase* service_connector) = 0; | 77 internal::ServiceConnectorBase* service_connector) = 0; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace mojo | 80 } // namespace mojo |
| 80 | 81 |
| 81 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_CONNECTION_H_ | 82 #endif // MOJO_PUBLIC_APPLICATION_APPLICATION_CONNECTION_H_ |
| OLD | NEW |