| Index: remoting/client/plugin/pepper_port_allocator.cc
|
| ===================================================================
|
| --- remoting/client/plugin/pepper_port_allocator.cc (revision 136430)
|
| +++ remoting/client/plugin/pepper_port_allocator.cc (working copy)
|
| @@ -28,6 +28,8 @@
|
| cricket::HttpPortAllocatorBase* allocator,
|
| const std::string& channel_name,
|
| int component,
|
| + const std::string& ice_username_fragment,
|
| + const std::string& ice_password,
|
| const std::vector<talk_base::SocketAddress>& stun_hosts,
|
| const std::vector<std::string>& relay_hosts,
|
| const std::string& relay,
|
| @@ -59,12 +61,15 @@
|
| cricket::HttpPortAllocatorBase* allocator,
|
| const std::string& channel_name,
|
| int component,
|
| + const std::string& ice_username_fragment,
|
| + const std::string& ice_password,
|
| const std::vector<talk_base::SocketAddress>& stun_hosts,
|
| const std::vector<std::string>& relay_hosts,
|
| const std::string& relay,
|
| const pp::InstanceHandle& instance)
|
| : HttpPortAllocatorSessionBase(
|
| - allocator, channel_name, component, stun_hosts, relay_hosts, relay, ""),
|
| + allocator, channel_name, component, ice_username_fragment, ice_password,
|
| + stun_hosts, relay_hosts, relay, ""),
|
| instance_(instance) {
|
| }
|
|
|
| @@ -212,12 +217,14 @@
|
| PepperPortAllocator::~PepperPortAllocator() {
|
| }
|
|
|
| -cricket::PortAllocatorSession* PepperPortAllocator::CreateSession(
|
| +cricket::PortAllocatorSession* PepperPortAllocator::CreateSessionInternal(
|
| const std::string& channel_name,
|
| - int component) {
|
| + int component,
|
| + const std::string& ice_username_fragment,
|
| + const std::string& ice_password) {
|
| return new PepperPortAllocatorSession(
|
| - this, channel_name, component, stun_hosts(),
|
| - relay_hosts(), relay_token(), instance_);
|
| + this, channel_name, component, ice_username_fragment, ice_password,
|
| + stun_hosts(), relay_hosts(), relay_token(), instance_);
|
| }
|
|
|
| } // namespace remoting
|
|
|