OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/jingle_glue/chromium_port_allocator.h" | 5 #include "remoting/jingle_glue/chromium_port_allocator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "googleurl/src/gurl.h" | |
11 #include "net/http/http_status_code.h" | 10 #include "net/http/http_status_code.h" |
12 #include "net/url_request/url_fetcher.h" | 11 #include "net/url_request/url_fetcher.h" |
13 #include "net/url_request/url_fetcher_delegate.h" | 12 #include "net/url_request/url_fetcher_delegate.h" |
14 #include "net/url_request/url_request_context_getter.h" | 13 #include "net/url_request/url_request_context_getter.h" |
15 #include "remoting/jingle_glue/chromium_socket_factory.h" | 14 #include "remoting/jingle_glue/chromium_socket_factory.h" |
16 #include "remoting/jingle_glue/network_settings.h" | 15 #include "remoting/jingle_glue/network_settings.h" |
| 16 #include "url/gurl.h" |
17 | 17 |
18 namespace remoting { | 18 namespace remoting { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 class ChromiumPortAllocatorSession | 22 class ChromiumPortAllocatorSession |
23 : public cricket::HttpPortAllocatorSessionBase, | 23 : public cricket::HttpPortAllocatorSessionBase, |
24 public net::URLFetcherDelegate { | 24 public net::URLFetcherDelegate { |
25 public: | 25 public: |
26 ChromiumPortAllocatorSession( | 26 ChromiumPortAllocatorSession( |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 const std::string& content_name, | 178 const std::string& content_name, |
179 int component, | 179 int component, |
180 const std::string& ice_username_fragment, | 180 const std::string& ice_username_fragment, |
181 const std::string& ice_password) { | 181 const std::string& ice_password) { |
182 return new ChromiumPortAllocatorSession( | 182 return new ChromiumPortAllocatorSession( |
183 this, content_name, component, ice_username_fragment, ice_password, | 183 this, content_name, component, ice_username_fragment, ice_password, |
184 stun_hosts(), relay_hosts(), relay_token(), url_context_); | 184 stun_hosts(), relay_hosts(), relay_token(), url_context_); |
185 } | 185 } |
186 | 186 |
187 } // namespace remoting | 187 } // namespace remoting |
OLD | NEW |