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

Side by Side Diff: remoting/protocol/fake_session.cc

Issue 2035803002: Fix WebRtcFrameScheduler to wait for first key frame request. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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 unified diff | Download patch
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/webrtc_frame_scheduler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/fake_session.h" 5 #include "remoting/protocol/fake_session.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "remoting/protocol/fake_authenticator.h" 9 #include "remoting/protocol/fake_authenticator.h"
10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" 10 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 peer->peer_.reset(); 79 peer->peer_.reset();
80 peer_.reset(); 80 peer_.reset();
81 peer->Close(error); 81 peer->Close(error);
82 } 82 }
83 } 83 }
84 84
85 void FakeSession::SendTransportInfo( 85 void FakeSession::SendTransportInfo(
86 std::unique_ptr<buzz::XmlElement> transport_info) { 86 std::unique_ptr<buzz::XmlElement> transport_info) {
87 if (!peer_) 87 if (!peer_)
88 return; 88 return;
89 peer_->transport_->ProcessTransportInfo(transport_info.get()); 89
90 if (signaling_delay_.is_zero()) {
91 peer_->ProcessTransportInfo(std::move(transport_info));
92 } else {
93 base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
94 FROM_HERE, base::Bind(&FakeSession::ProcessTransportInfo, peer_,
95 base::Passed(&transport_info)),
96 signaling_delay_);
97 }
98 }
99
100 void FakeSession::ProcessTransportInfo(
101 std::unique_ptr<buzz::XmlElement> transport_info) {
102 transport_->ProcessTransportInfo(transport_info.get());
90 } 103 }
91 104
92 } // namespace protocol 105 } // namespace protocol
93 } // namespace remoting 106 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | remoting/protocol/webrtc_frame_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698