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

Unified Diff: remoting/protocol/fake_connection_to_host.cc

Issue 1545743002: Move ownership of Transport out of Session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_not_pass_client
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/fake_connection_to_host.h ('k') | remoting/protocol/fake_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_connection_to_host.cc
diff --git a/remoting/protocol/fake_connection_to_host.cc b/remoting/protocol/fake_connection_to_host.cc
index f818730dd0cbc6bd85cd76e48d99322f55ab61b9..cbec7691f291ef91f8c8b5f3257f6ee366325e36 100644
--- a/remoting/protocol/fake_connection_to_host.cc
+++ b/remoting/protocol/fake_connection_to_host.cc
@@ -23,8 +23,10 @@ void FakeConnectionToHost::set_video_stub(protocol::VideoStub* video_stub) {}
void FakeConnectionToHost::set_audio_stub(protocol::AudioStub* audio_stub) {}
-void FakeConnectionToHost::Connect(scoped_ptr<protocol::Session> session,
- HostEventCallback* event_callback) {
+void FakeConnectionToHost::Connect(
+ scoped_ptr<protocol::Session> session,
+ scoped_refptr<protocol::TransportContext> transport_context,
+ HostEventCallback* event_callback) {
DCHECK(event_callback);
event_callback_ = event_callback;
@@ -41,7 +43,6 @@ void FakeConnectionToHost::SignalStateChange(protocol::Session::State state,
case protocol::Session::CONNECTING:
case protocol::Session::ACCEPTING:
case protocol::Session::AUTHENTICATING:
- case protocol::Session::CONNECTED:
// No updates for these events.
break;
« no previous file with comments | « remoting/protocol/fake_connection_to_host.h ('k') | remoting/protocol/fake_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698