Chromium Code Reviews| Index: remoting/protocol/connection_to_host.h |
| diff --git a/remoting/protocol/connection_to_host.h b/remoting/protocol/connection_to_host.h |
| index e766741146b1c8da92da2b41f95ed23fa30a31d2..33c528c918330c055e8cc27883def7abde87ec4b 100644 |
| --- a/remoting/protocol/connection_to_host.h |
| +++ b/remoting/protocol/connection_to_host.h |
| @@ -20,6 +20,7 @@ |
| #include "remoting/protocol/message_reader.h" |
| #include "remoting/protocol/monitored_video_stub.h" |
| #include "remoting/protocol/session.h" |
| +#include "remoting/protocol/session_config.h" |
| #include "remoting/protocol/session_manager.h" |
| #include "remoting/signaling/signal_strategy.h" |
| @@ -83,6 +84,10 @@ class ConnectionToHost : public SignalStrategy::Listener, |
| ConnectionToHost(); |
| virtual ~ConnectionToHost(); |
| + // Allows to set a custom protocol configuration (e.g. for tests). Cannot be |
| + // called after Connect(). |
| + void set_candidate_config(scoped_ptr<CandidateSessionConfig> config); |
|
rmsousa
2014/07/16 23:06:00
nit, feel free to ignore:
this name (and the corre
Sergey Ulanov
2014/07/17 01:47:58
Yeah I agree, that it might be confusing, but set_
|
| + |
| // Set the stubs which will handle messages from the host. |
| // The caller must ensure that stubs out-live the connection. |
| // Unless otherwise specified, all stubs must be set before Connect() |
| @@ -156,6 +161,8 @@ class ConnectionToHost : public SignalStrategy::Listener, |
| HostEventCallback* event_callback_; |
| + scoped_ptr<CandidateSessionConfig> candidate_config_; |
| + |
| // Stub for incoming messages. |
| ClientStub* client_stub_; |
| ClipboardStub* clipboard_stub_; |