| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SHELL_CONNECT_PARAMS_H_ | 5 #ifndef MOJO_SHELL_CONNECT_PARAMS_H_ |
| 6 #define MOJO_SHELL_CONNECT_PARAMS_H_ | 6 #define MOJO_SHELL_CONNECT_PARAMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "mojo/public/cpp/bindings/interface_request.h" | 13 #include "mojo/public/cpp/bindings/interface_request.h" |
| 14 #include "mojo/shell/identity.h" | 14 #include "mojo/shell/public/cpp/identity.h" |
| 15 #include "mojo/shell/public/interfaces/connector.mojom.h" | 15 #include "mojo/shell/public/interfaces/connector.mojom.h" |
| 16 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" | 16 #include "mojo/shell/public/interfaces/interface_provider.mojom.h" |
| 17 | 17 |
| 18 namespace mojo { | 18 namespace mojo { |
| 19 namespace shell { | 19 namespace shell { |
| 20 | 20 |
| 21 // This class represents a request for the application manager to connect to an | 21 // This class represents a request for the application manager to connect to an |
| 22 // application. | 22 // application. |
| 23 class ConnectParams { | 23 class ConnectParams { |
| 24 public: | 24 public: |
| 25 ConnectParams(); | 25 ConnectParams(); |
| 26 ~ConnectParams(); | 26 ~ConnectParams(); |
| 27 | 27 |
| 28 void set_source(const Identity& source) { source_ = source; } | 28 void set_source(const Identity& source) { source_ = source; } |
| 29 const Identity& source() const { return source_; } | 29 const Identity& source() const { return source_; } |
| 30 void set_target(const Identity& target) { target_ = target; } | 30 void set_target(const Identity& target) { target_ = target; } |
| 31 const Identity& target() const { return target_; } | 31 const Identity& target() const { return target_; } |
| 32 | 32 |
| 33 void set_remote_interfaces(shell::mojom::InterfaceProviderRequest value) { | 33 void set_remote_interfaces(shell::mojom::InterfaceProviderRequest value) { |
| 34 remote_interfaces_ = std::move(value); | 34 remote_interfaces_ = std::move(value); |
| 35 } | 35 } |
| 36 shell::mojom::InterfaceProviderRequest TakeRemoteInterfaces() { | 36 shell::mojom::InterfaceProviderRequest TakeRemoteInterfaces() { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 63 shell::mojom::InterfaceProviderPtr local_interfaces_; | 63 shell::mojom::InterfaceProviderPtr local_interfaces_; |
| 64 shell::mojom::Connector::ConnectCallback connect_callback_; | 64 shell::mojom::Connector::ConnectCallback connect_callback_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(ConnectParams); | 66 DISALLOW_COPY_AND_ASSIGN(ConnectParams); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace shell | 69 } // namespace shell |
| 70 } // namespace mojo | 70 } // namespace mojo |
| 71 | 71 |
| 72 #endif // MOJO_SHELL_CONNECT_PARAMS_H_ | 72 #endif // MOJO_SHELL_CONNECT_PARAMS_H_ |
| OLD | NEW |