Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: net/url_request/test_url_fetcher_factory.cc

Issue 2405483002: Make the request initiator Optional (Closed)
Patch Set: Addressed comments + rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/url_request/test_url_fetcher_factory.h ('k') | net/url_request/url_fetcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/url_request/test_url_fetcher_factory.h ('k') | net/url_request/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698