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

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

Issue 265253002: Revert of Remove Referrer Policy from URLFetcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 | Annotate | Revision Log
« 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 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 fake_load_flags_= load_flags; 85 fake_load_flags_= load_flags;
86 } 86 }
87 87
88 int TestURLFetcher::GetLoadFlags() const { 88 int TestURLFetcher::GetLoadFlags() const {
89 return fake_load_flags_; 89 return fake_load_flags_;
90 } 90 }
91 91
92 void TestURLFetcher::SetReferrer(const std::string& referrer) { 92 void TestURLFetcher::SetReferrer(const std::string& referrer) {
93 } 93 }
94 94
95 void TestURLFetcher::SetReferrerPolicy(
96 URLRequest::ReferrerPolicy referrer_policy) {
97 }
98
95 void TestURLFetcher::SetExtraRequestHeaders( 99 void TestURLFetcher::SetExtraRequestHeaders(
96 const std::string& extra_request_headers) { 100 const std::string& extra_request_headers) {
97 fake_extra_request_headers_.Clear(); 101 fake_extra_request_headers_.Clear();
98 fake_extra_request_headers_.AddHeadersFromString(extra_request_headers); 102 fake_extra_request_headers_.AddHeadersFromString(extra_request_headers);
99 } 103 }
100 104
101 void TestURLFetcher::AddExtraRequestHeader(const std::string& header_line) { 105 void TestURLFetcher::AddExtraRequestHeader(const std::string& header_line) {
102 fake_extra_request_headers_.AddHeaderFromString(header_line); 106 fake_extra_request_headers_.AddHeaderFromString(header_line);
103 } 107 }
104 108
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 418
415 URLFetcher* URLFetcherImplFactory::CreateURLFetcher( 419 URLFetcher* URLFetcherImplFactory::CreateURLFetcher(
416 int id, 420 int id,
417 const GURL& url, 421 const GURL& url,
418 URLFetcher::RequestType request_type, 422 URLFetcher::RequestType request_type,
419 URLFetcherDelegate* d) { 423 URLFetcherDelegate* d) {
420 return new URLFetcherImpl(url, request_type, d); 424 return new URLFetcherImpl(url, request_type, d);
421 } 425 }
422 426
423 } // namespace net 427 } // 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