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_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
6 #define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ | 6 #define MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <utility> | 11 #include <utility> |
10 | 12 |
11 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
12 #include "mojo/application/public/cpp/lib/interface_factory_connector.h" | 14 #include "mojo/application/public/cpp/lib/interface_factory_connector.h" |
13 #include "mojo/application/public/interfaces/service_provider.mojom.h" | 15 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
14 | 16 |
15 namespace mojo { | 17 namespace mojo { |
16 | 18 |
17 class ServiceConnector; | 19 class ServiceConnector; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // some filtering policy preventing this interface from being exposed). | 135 // some filtering policy preventing this interface from being exposed). |
134 virtual bool SetServiceConnectorForName(ServiceConnector* service_connector, | 136 virtual bool SetServiceConnectorForName(ServiceConnector* service_connector, |
135 const std::string& name) = 0; | 137 const std::string& name) = 0; |
136 | 138 |
137 virtual base::WeakPtr<ApplicationConnection> GetWeakPtr() = 0; | 139 virtual base::WeakPtr<ApplicationConnection> GetWeakPtr() = 0; |
138 }; | 140 }; |
139 | 141 |
140 } // namespace mojo | 142 } // namespace mojo |
141 | 143 |
142 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ | 144 #endif // MOJO_APPLICATION_PUBLIC_CPP_APPLICATION_CONNECTION_H_ |
OLD | NEW |