| 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" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 } | 118 } |
| 119 | 119 |
| 120 void TestURLFetcher::AddExtraRequestHeader(const std::string& header_line) { | 120 void TestURLFetcher::AddExtraRequestHeader(const std::string& header_line) { |
| 121 fake_extra_request_headers_.AddHeaderFromString(header_line); | 121 fake_extra_request_headers_.AddHeaderFromString(header_line); |
| 122 } | 122 } |
| 123 | 123 |
| 124 void TestURLFetcher::SetRequestContext( | 124 void TestURLFetcher::SetRequestContext( |
| 125 URLRequestContextGetter* request_context_getter) { | 125 URLRequestContextGetter* request_context_getter) { |
| 126 } | 126 } |
| 127 | 127 |
| 128 void TestURLFetcher::SetInitiatorURL(const GURL& initiator) {} | 128 void TestURLFetcher::SetInitiator( |
| 129 const base::Optional<url::Origin>& initiator) {} |
| 129 | 130 |
| 130 void TestURLFetcher::SetURLRequestUserData( | 131 void TestURLFetcher::SetURLRequestUserData( |
| 131 const void* key, | 132 const void* key, |
| 132 const CreateDataCallback& create_data_callback) { | 133 const CreateDataCallback& create_data_callback) { |
| 133 } | 134 } |
| 134 | 135 |
| 135 void TestURLFetcher::SetStopOnRedirect(bool stop_on_redirect) { | 136 void TestURLFetcher::SetStopOnRedirect(bool stop_on_redirect) { |
| 136 } | 137 } |
| 137 | 138 |
| 138 void TestURLFetcher::SetAutomaticallyRetryOn5xx(bool retry) { | 139 void TestURLFetcher::SetAutomaticallyRetryOn5xx(bool retry) { |
| (...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 | 482 |
| 482 std::unique_ptr<URLFetcher> URLFetcherImplFactory::CreateURLFetcher( | 483 std::unique_ptr<URLFetcher> URLFetcherImplFactory::CreateURLFetcher( |
| 483 int id, | 484 int id, |
| 484 const GURL& url, | 485 const GURL& url, |
| 485 URLFetcher::RequestType request_type, | 486 URLFetcher::RequestType request_type, |
| 486 URLFetcherDelegate* d) { | 487 URLFetcherDelegate* d) { |
| 487 return std::unique_ptr<URLFetcher>(new URLFetcherImpl(url, request_type, d)); | 488 return std::unique_ptr<URLFetcher>(new URLFetcherImpl(url, request_type, d)); |
| 488 } | 489 } |
| 489 | 490 |
| 490 } // namespace net | 491 } // namespace net |
| OLD | NEW |