Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1490)

Unified Diff: remoting/protocol/fake_connection_to_host.h

Issue 1520323007: Simplify ConnectionToHost interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sm_cleanup
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/connection_to_host_impl.cc ('k') | remoting/protocol/fake_connection_to_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_connection_to_host.h
diff --git a/remoting/protocol/fake_connection_to_host.h b/remoting/protocol/fake_connection_to_host.h
index 85ea24a63d600efd7451bbc29ae5644090f24089..508d1ea618be55a3ba1b52d54a2740789ec1eb48 100644
--- a/remoting/protocol/fake_connection_to_host.h
+++ b/remoting/protocol/fake_connection_to_host.h
@@ -19,16 +19,11 @@ class FakeConnectionToHost : public protocol::ConnectionToHost {
~FakeConnectionToHost() override;
// ConnectionToHost interface.
- void set_candidate_config(
- scoped_ptr<protocol::CandidateSessionConfig> config) override;
void set_client_stub(protocol::ClientStub* client_stub) override;
void set_clipboard_stub(protocol::ClipboardStub* clipboard_stub) override;
void set_video_stub(protocol::VideoStub* video_stub) override;
void set_audio_stub(protocol::AudioStub* audio_stub) override;
- void Connect(SignalStrategy* signal_strategy,
- scoped_refptr<protocol::TransportContext> transport_context,
- scoped_ptr<protocol::Authenticator> authenticator,
- const std::string& host_jid,
+ void Connect(scoped_ptr<protocol::Session> session,
HostEventCallback* event_callback) override;
const protocol::SessionConfig& config() override;
protocol::ClipboardStub* clipboard_forwarder() override;
@@ -47,7 +42,7 @@ class FakeConnectionToHost : public protocol::ConnectionToHost {
private:
void SetState(State state, protocol::ErrorCode error);
- State state_;
+ State state_ = INITIALIZING;
HostEventCallback* event_callback_;
« no previous file with comments | « remoting/protocol/connection_to_host_impl.cc ('k') | remoting/protocol/fake_connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698