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