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 #include "remoting/protocol/webrtc_connection_to_host.h" | 5 #include "remoting/protocol/webrtc_connection_to_host.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "jingle/glue/thread_wrapper.h" | 9 #include "jingle/glue/thread_wrapper.h" |
10 #include "remoting/protocol/client_control_dispatcher.h" | 10 #include "remoting/protocol/client_control_dispatcher.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 void WebrtcConnectionToHost::set_client_stub(ClientStub* client_stub) { | 58 void WebrtcConnectionToHost::set_client_stub(ClientStub* client_stub) { |
59 client_stub_ = client_stub; | 59 client_stub_ = client_stub; |
60 } | 60 } |
61 | 61 |
62 void WebrtcConnectionToHost::set_clipboard_stub(ClipboardStub* clipboard_stub) { | 62 void WebrtcConnectionToHost::set_clipboard_stub(ClipboardStub* clipboard_stub) { |
63 clipboard_stub_ = clipboard_stub; | 63 clipboard_stub_ = clipboard_stub; |
64 } | 64 } |
65 | 65 |
66 void WebrtcConnectionToHost::set_video_stub(VideoStub* video_stub) { | 66 void WebrtcConnectionToHost::set_video_renderer(VideoRenderer* video_renderer) { |
67 NOTIMPLEMENTED(); | 67 NOTIMPLEMENTED(); |
68 } | 68 } |
69 | 69 |
70 void WebrtcConnectionToHost::set_audio_stub(AudioStub* audio_stub) { | 70 void WebrtcConnectionToHost::set_audio_stub(AudioStub* audio_stub) { |
71 NOTIMPLEMENTED(); | 71 NOTIMPLEMENTED(); |
72 } | 72 } |
73 | 73 |
74 void WebrtcConnectionToHost::OnSessionStateChange(Session::State state) { | 74 void WebrtcConnectionToHost::OnSessionStateChange(Session::State state) { |
75 DCHECK(event_callback_); | 75 DCHECK(event_callback_); |
76 | 76 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 if (state != state_) { | 153 if (state != state_) { |
154 state_ = state; | 154 state_ = state; |
155 error_ = error; | 155 error_ = error; |
156 event_callback_->OnConnectionState(state_, error_); | 156 event_callback_->OnConnectionState(state_, error_); |
157 } | 157 } |
158 } | 158 } |
159 | 159 |
160 } // namespace protocol | 160 } // namespace protocol |
161 } // namespace remoting | 161 } // namespace remoting |
OLD | NEW |