content/renderer/media/rtc_peer_connection_handler.cc
// Converter functions from  libjingle types to WebKit types.
Converter functions from  libjingle types to WebKit types.
Converter functions from libjingle types to WebKit types .
static WebKit::WebRTCPeerConnectionHandlerClient::ICEState
GetWebKitIceState(webrtc::PeerConnectionInterface::IceState ice_state) {
  switch (ice_state) {
    case webrtc::PeerConnectionInterface::kIceNew:
      return WebKit::WebRTCPeerConnectionHandlerClient::ICEStateNew;
    case webrtc::PeerConnectionInterface::kIceGathering:
      return WebKit::WebRTCPeerConnectionHandlerClient::ICEStateGathering;
    case webrtc::PeerConnectionInterface::kIceWaiting:
      return WebKit::WebRTCPeerConnectionHandlerClient::ICEStateWaiting;
    case webrtc::PeerConnectionInterface::kIceChecking:
      return WebKit::WebRTCPeerConnectionHandlerClient::ICEStateChecking;
    case webrtc::PeerConnectionInterface::kIceConnected:
      return WebKit::WebRTCPeerConnectionHandlerClient::ICEStateConnected;
    case webrtc::PeerConnectionInterface::kIceCompleted:
      return WebKit::WebRTCPeerConnectionHandlerClient::ICEStateCompleted;
    case webrtc::PeerConnectionInterface::kIceFailed:
      return WebKit::WebRTCPeerConnectionHandlerClient::ICEStateFailed;
    case webrtc::PeerConnectionInterface::kIceClosed:
      return WebKit::WebRTCPeerConnectionHandlerClient::ICEStateClosed;
    default:
      NOTREACHED();
      return WebKit::WebRTCPeerConnectionHandlerClient::ICEStateClosed;
  }
}
static WebKit :: WebRTCPeerConnectionHandlerClient :: ICEState GetWebKitIceState ( webrtc :: PeerConnectionInterface :: IceState ice_state ) { switch ( ice_state ) { case webrtc :: PeerConnectionInterface :: kIceNew : return WebKit :: WebRTCPeerConnectionHandlerClient :: ICEStateNew ; case webrtc :: PeerConnectionInterface :: kIceGathering : return WebKit :: WebRTCPeerConnectionHandlerClient :: ICEStateGathering ; case webrtc :: PeerConnectionInterface :: kIceWaiting : return WebKit :: WebRTCPeerConnectionHandlerClient :: ICEStateWaiting ; case webrtc :: PeerConnectionInterface :: kIceChecking : return WebKit :: WebRTCPeerConnectionHandlerClient :: ICEStateChecking ; case webrtc :: PeerConnectionInterface :: kIceConnected : return WebKit :: WebRTCPeerConnectionHandlerClient :: ICEStateConnected ; case webrtc :: PeerConnectionInterface :: kIceCompleted : return WebKit :: WebRTCPeerConnectionHandlerClient :: ICEStateCompleted ; case webrtc :: PeerConnectionInterface :: kIceFailed : return WebKit :: WebRTCPeerConnectionHandlerClient :: ICEStateFailed ; case webrtc :: PeerConnectionInterface :: kIceClosed : return WebKit :: WebRTCPeerConnectionHandlerClient :: ICEStateClosed ; default : NOTREACHED ( ) ; return WebKit :: WebRTCPeerConnectionHandlerClient :: ICEStateClosed ; } }
Converter functions from  libjingle types to WebKit types.
Converter functions from libjingle types to WebKit types .