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 #ifndef NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 5 #ifndef NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
6 #define NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 6 #define NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <list> | 10 #include <list> |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <string> | 13 #include <string> |
14 #include <utility> | 14 #include <utility> |
15 | 15 |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/files/file_path.h" | 18 #include "base/files/file_path.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
| 21 #include "base/sequenced_task_runner.h" |
21 #include "base/threading/non_thread_safe.h" | 22 #include "base/threading/non_thread_safe.h" |
22 #include "net/http/http_request_headers.h" | 23 #include "net/http/http_request_headers.h" |
23 #include "net/http/http_status_code.h" | 24 #include "net/http/http_status_code.h" |
24 #include "net/url_request/url_fetcher_factory.h" | 25 #include "net/url_request/url_fetcher_factory.h" |
25 #include "net/url_request/url_request_status.h" | 26 #include "net/url_request/url_request_status.h" |
26 #include "url/gurl.h" | 27 #include "url/gurl.h" |
27 | 28 |
28 namespace net { | 29 namespace net { |
29 | 30 |
30 // Changes URLFetcher's Factory for the lifetime of the object. | 31 // Changes URLFetcher's Factory for the lifetime of the object. |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 std::unique_ptr<URLFetcher> CreateURLFetcher( | 469 std::unique_ptr<URLFetcher> CreateURLFetcher( |
469 int id, | 470 int id, |
470 const GURL& url, | 471 const GURL& url, |
471 URLFetcher::RequestType request_type, | 472 URLFetcher::RequestType request_type, |
472 URLFetcherDelegate* d) override; | 473 URLFetcherDelegate* d) override; |
473 }; | 474 }; |
474 | 475 |
475 } // namespace net | 476 } // namespace net |
476 | 477 |
477 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ | 478 #endif // NET_URL_REQUEST_TEST_URL_FETCHER_FACTORY_H_ |
OLD | NEW |