| 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class ApplicationInstance; | 22 class ApplicationInstance; |
| 23 | 23 |
| 24 // This class represents a request for the application manager to connect to an | 24 // This class represents a request for the application manager to connect to an |
| 25 // application. | 25 // application. |
| 26 class ConnectParams { | 26 class ConnectParams { |
| 27 public: | 27 public: |
| 28 ConnectParams(); | 28 ConnectParams(); |
| 29 ~ConnectParams(); | 29 ~ConnectParams(); |
| 30 | 30 |
| 31 // The following methods set both |target_| and |target_url_request_|. | |
| 32 void SetTargetURL(const GURL& target_url); | |
| 33 | |
| 34 void set_source(const Identity& source) { source_ = source; } | 31 void set_source(const Identity& source) { source_ = source; } |
| 35 const Identity& source() const { return source_; } | 32 const Identity& source() const { return source_; } |
| 36 void set_target(const Identity& target) { target_ = target; } | 33 void set_target(const Identity& target) { target_ = target; } |
| 37 const Identity& target() const { return target_; } | 34 const Identity& target() const { return target_; } |
| 38 | 35 |
| 39 void set_remote_interfaces(shell::mojom::InterfaceProviderRequest value) { | 36 void set_remote_interfaces(shell::mojom::InterfaceProviderRequest value) { |
| 40 remote_interfaces_ = std::move(value); | 37 remote_interfaces_ = std::move(value); |
| 41 } | 38 } |
| 42 shell::mojom::InterfaceProviderRequest TakeRemoteInterfaces() { | 39 shell::mojom::InterfaceProviderRequest TakeRemoteInterfaces() { |
| 43 return std::move(remote_interfaces_); | 40 return std::move(remote_interfaces_); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 69 shell::mojom::InterfaceProviderPtr local_interfaces_; | 66 shell::mojom::InterfaceProviderPtr local_interfaces_; |
| 70 shell::mojom::Connector::ConnectCallback connect_callback_; | 67 shell::mojom::Connector::ConnectCallback connect_callback_; |
| 71 | 68 |
| 72 DISALLOW_COPY_AND_ASSIGN(ConnectParams); | 69 DISALLOW_COPY_AND_ASSIGN(ConnectParams); |
| 73 }; | 70 }; |
| 74 | 71 |
| 75 } // namespace shell | 72 } // namespace shell |
| 76 } // namespace mojo | 73 } // namespace mojo |
| 77 | 74 |
| 78 #endif // MOJO_SHELL_CONNECT_PARAMS_H_ | 75 #endif // MOJO_SHELL_CONNECT_PARAMS_H_ |
| OLD | NEW |