content/renderer/media/rtc_peer_connection_handler.cc
// Converter functions from WebKit types to libjingle types.
Converter functions from WebKit types to libjingle types.
Converter functions from WebKit types to libjingle types .
static void GetNativeIceServers(
    const WebKit::WebRTCConfiguration& server_configuration,
    webrtc::JsepInterface::IceServers* servers) {
  if (server_configuration.isNull() || !servers)
    return;
  for (size_t i = 0; i < server_configuration.numberOfServers(); ++i) {
    webrtc::JsepInterface::IceServer server;
    const WebKit::WebRTCICEServer& webkit_server =
        server_configuration.server(i);
    server.password = UTF16ToUTF8(webkit_server.credential());
    server.uri = webkit_server.uri().spec();
    servers->push_back(server);
  }
}
static void GetNativeIceServers ( const WebKit :: WebRTCConfiguration & server_configuration , webrtc :: JsepInterface :: IceServers * servers ) { if ( server_configuration . isNull ( ) || ! servers ) return ; for ( size_t i = 0 ; i < server_configuration . numberOfServers ( ) ; ++ i ) { webrtc :: JsepInterface :: IceServer server ; const WebKit :: WebRTCICEServer & webkit_server = server_configuration . server ( i ) ; server . password = UTF16ToUTF8 ( webkit_server . credential ( ) ) ; server . uri = webkit_server . uri ( ) . spec ( ) ; servers -> push_back ( server ) ; } }
Converter functions from WebKit types to libjingle types.
Converter functions from WebKit types to libjingle types .