OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/url_request/test_url_fetcher_factory.h" | 5 #include "net/url_request/test_url_fetcher_factory.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/thread_task_runner_handle.h" | |
18 #include "base/threading/thread_restrictions.h" | 17 #include "base/threading/thread_restrictions.h" |
| 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "net/base/host_port_pair.h" | 19 #include "net/base/host_port_pair.h" |
20 #include "net/base/io_buffer.h" | 20 #include "net/base/io_buffer.h" |
21 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
22 #include "net/base/upload_data_stream.h" | 22 #include "net/base/upload_data_stream.h" |
23 #include "net/http/http_response_headers.h" | 23 #include "net/http/http_response_headers.h" |
24 #include "net/url_request/url_fetcher_delegate.h" | 24 #include "net/url_request/url_fetcher_delegate.h" |
25 #include "net/url_request/url_fetcher_impl.h" | 25 #include "net/url_request/url_fetcher_impl.h" |
26 #include "net/url_request/url_fetcher_response_writer.h" | 26 #include "net/url_request/url_fetcher_response_writer.h" |
27 #include "net/url_request/url_request_status.h" | 27 #include "net/url_request/url_request_status.h" |
28 | 28 |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 | 485 |
486 std::unique_ptr<URLFetcher> URLFetcherImplFactory::CreateURLFetcher( | 486 std::unique_ptr<URLFetcher> URLFetcherImplFactory::CreateURLFetcher( |
487 int id, | 487 int id, |
488 const GURL& url, | 488 const GURL& url, |
489 URLFetcher::RequestType request_type, | 489 URLFetcher::RequestType request_type, |
490 URLFetcherDelegate* d) { | 490 URLFetcherDelegate* d) { |
491 return std::unique_ptr<URLFetcher>(new URLFetcherImpl(url, request_type, d)); | 491 return std::unique_ptr<URLFetcher>(new URLFetcherImpl(url, request_type, d)); |
492 } | 492 } |
493 | 493 |
494 } // namespace net | 494 } // namespace net |
OLD | NEW |