OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/protocol/chromium_port_allocator.h" | 5 #include "remoting/protocol/chromium_port_allocator.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
8 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
9 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
10 #include "net/http/http_status_code.h" | 11 #include "net/http/http_status_code.h" |
11 #include "net/url_request/url_fetcher.h" | 12 #include "net/url_request/url_fetcher.h" |
12 #include "net/url_request/url_fetcher_delegate.h" | 13 #include "net/url_request/url_fetcher_delegate.h" |
13 #include "net/url_request/url_request_context_getter.h" | 14 #include "net/url_request/url_request_context_getter.h" |
14 #include "remoting/protocol/chromium_socket_factory.h" | 15 #include "remoting/protocol/chromium_socket_factory.h" |
15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
16 | 17 |
17 namespace remoting { | 18 namespace remoting { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 169 |
169 ChromiumPortAllocatorFactory::~ChromiumPortAllocatorFactory() {} | 170 ChromiumPortAllocatorFactory::~ChromiumPortAllocatorFactory() {} |
170 | 171 |
171 scoped_ptr<cricket::HttpPortAllocatorBase> | 172 scoped_ptr<cricket::HttpPortAllocatorBase> |
172 ChromiumPortAllocatorFactory::CreatePortAllocator() { | 173 ChromiumPortAllocatorFactory::CreatePortAllocator() { |
173 return ChromiumPortAllocator::Create(url_request_context_getter_); | 174 return ChromiumPortAllocator::Create(url_request_context_getter_); |
174 } | 175 } |
175 | 176 |
176 } // namespace protocol | 177 } // namespace protocol |
177 } // namespace remoting | 178 } // namespace remoting |
OLD | NEW |