Chromium Code Reviews| 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 "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "jingle/glue/thread_wrapper.h" | 10 #include "jingle/glue/thread_wrapper.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 } | 65 } |
| 66 | 66 |
| 67 void WebrtcConnectionToHost::set_clipboard_stub(ClipboardStub* clipboard_stub) { | 67 void WebrtcConnectionToHost::set_clipboard_stub(ClipboardStub* clipboard_stub) { |
| 68 clipboard_stub_ = clipboard_stub; | 68 clipboard_stub_ = clipboard_stub; |
| 69 } | 69 } |
| 70 | 70 |
| 71 void WebrtcConnectionToHost::set_video_renderer(VideoRenderer* video_renderer) { | 71 void WebrtcConnectionToHost::set_video_renderer(VideoRenderer* video_renderer) { |
| 72 video_renderer_ = video_renderer; | 72 video_renderer_ = video_renderer; |
| 73 } | 73 } |
| 74 | 74 |
| 75 void WebrtcConnectionToHost::set_audio_stub(AudioStub* audio_stub) { | 75 void WebrtcConnectionToHost::InitializeAudio( |
| 76 scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner, | |
| 77 base::WeakPtr<AudioStub> audio_stub) { | |
| 76 NOTIMPLEMENTED(); | 78 NOTIMPLEMENTED(); |
|
Jamie
2016/10/04 00:25:38
Is NOTIMPLEMENTED appropriate here? NOTIMPLEMENTED
Sergey Ulanov
2016/10/04 00:42:22
NOIMPLEMENTED is appropriate here. It will be impl
| |
| 77 } | 79 } |
| 78 | 80 |
| 79 void WebrtcConnectionToHost::OnSessionStateChange(Session::State state) { | 81 void WebrtcConnectionToHost::OnSessionStateChange(Session::State state) { |
| 80 DCHECK(event_callback_); | 82 DCHECK(event_callback_); |
| 81 | 83 |
| 82 switch (state) { | 84 switch (state) { |
| 83 case Session::INITIALIZING: | 85 case Session::INITIALIZING: |
| 84 case Session::CONNECTING: | 86 case Session::CONNECTING: |
| 85 case Session::ACCEPTING: | 87 case Session::ACCEPTING: |
| 86 case Session::ACCEPTED: | 88 case Session::ACCEPTED: |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 | 207 |
| 206 if (state != state_) { | 208 if (state != state_) { |
| 207 state_ = state; | 209 state_ = state; |
| 208 error_ = error; | 210 error_ = error; |
| 209 event_callback_->OnConnectionState(state_, error_); | 211 event_callback_->OnConnectionState(state_, error_); |
| 210 } | 212 } |
| 211 } | 213 } |
| 212 | 214 |
| 213 } // namespace protocol | 215 } // namespace protocol |
| 214 } // namespace remoting | 216 } // namespace remoting |
| OLD | NEW |