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

Side by Side Diff: content/renderer/media/peer_connection_handler_jsep.cc

Issue 10689180: Rolling libjingle to 158:159 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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 "content/renderer/media/peer_connection_handler_jsep.h" 5 #include "content/renderer/media/peer_connection_handler_jsep.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 202 }
203 203
204 void PeerConnectionHandlerJsep::OnStateChange(StateType state_changed) { 204 void PeerConnectionHandlerJsep::OnStateChange(StateType state_changed) {
205 switch (state_changed) { 205 switch (state_changed) {
206 case kReadyState: 206 case kReadyState:
207 WebKit::WebPeerConnection00HandlerClient::ReadyState ready_state; 207 WebKit::WebPeerConnection00HandlerClient::ReadyState ready_state;
208 switch (native_peer_connection_->ready_state()) { 208 switch (native_peer_connection_->ready_state()) {
209 case webrtc::PeerConnectionInterface::kNew: 209 case webrtc::PeerConnectionInterface::kNew:
210 ready_state = WebKit::WebPeerConnection00HandlerClient::ReadyStateNew; 210 ready_state = WebKit::WebPeerConnection00HandlerClient::ReadyStateNew;
211 break; 211 break;
212 case webrtc::PeerConnectionInterface::kNegotiating: 212 case webrtc::PeerConnectionInterface::kOpening:
213 ready_state = 213 ready_state =
214 WebKit::WebPeerConnection00HandlerClient::ReadyStateNegotiating; 214 WebKit::WebPeerConnection00HandlerClient::ReadyStateNegotiating;
215 break; 215 break;
216 case webrtc::PeerConnectionInterface::kActive: 216 case webrtc::PeerConnectionInterface::kActive:
217 ready_state = 217 ready_state =
218 WebKit::WebPeerConnection00HandlerClient::ReadyStateActive; 218 WebKit::WebPeerConnection00HandlerClient::ReadyStateActive;
219 break; 219 break;
220 case webrtc::PeerConnectionInterface::kClosing: 220 case webrtc::PeerConnectionInterface::kClosing:
221 // Not used by JSEP. 221 // Not used by JSEP.
222 NOTREACHED(); 222 NOTREACHED();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 break; 355 break;
356 case ActionSDPAnswer: 356 case ActionSDPAnswer:
357 *native_action = webrtc::PeerConnectionInterface::kAnswer; 357 *native_action = webrtc::PeerConnectionInterface::kAnswer;
358 break; 358 break;
359 default: 359 default:
360 NOTREACHED(); 360 NOTREACHED();
361 return false; 361 return false;
362 } 362 }
363 return true; 363 return true;
364 } 364 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698