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::SetFirstPartyForCookies( | 128 void TestURLFetcher::SetInitiatorURL(const GURL& initiator) {} |
129 const GURL& first_party_for_cookies) { | |
130 } | |
131 | 129 |
132 void TestURLFetcher::SetURLRequestUserData( | 130 void TestURLFetcher::SetURLRequestUserData( |
133 const void* key, | 131 const void* key, |
134 const CreateDataCallback& create_data_callback) { | 132 const CreateDataCallback& create_data_callback) { |
135 } | 133 } |
136 | 134 |
137 void TestURLFetcher::SetStopOnRedirect(bool stop_on_redirect) { | 135 void TestURLFetcher::SetStopOnRedirect(bool stop_on_redirect) { |
138 } | 136 } |
139 | 137 |
140 void TestURLFetcher::SetAutomaticallyRetryOn5xx(bool retry) { | 138 void TestURLFetcher::SetAutomaticallyRetryOn5xx(bool retry) { |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 | 484 |
487 scoped_ptr<URLFetcher> URLFetcherImplFactory::CreateURLFetcher( | 485 scoped_ptr<URLFetcher> URLFetcherImplFactory::CreateURLFetcher( |
488 int id, | 486 int id, |
489 const GURL& url, | 487 const GURL& url, |
490 URLFetcher::RequestType request_type, | 488 URLFetcher::RequestType request_type, |
491 URLFetcherDelegate* d) { | 489 URLFetcherDelegate* d) { |
492 return scoped_ptr<URLFetcher>(new URLFetcherImpl(url, request_type, d)); | 490 return scoped_ptr<URLFetcher>(new URLFetcherImpl(url, request_type, d)); |
493 } | 491 } |
494 | 492 |
495 } // namespace net | 493 } // namespace net |
OLD | NEW |