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

Side by Side Diff: net/url_request/url_fetcher_core.h

Issue 268703003: Remove Referrer Policy from URLFetcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove set_referrer_policy 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/url_fetcher.h ('k') | net/url_request/url_fetcher_core.cc » ('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 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_ 5 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_
6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 scoped_refptr<base::TaskRunner> file_task_runner); 70 scoped_refptr<base::TaskRunner> file_task_runner);
71 void SetChunkedUpload(const std::string& upload_content_type); 71 void SetChunkedUpload(const std::string& upload_content_type);
72 // Adds a block of data to be uploaded in a POST body. This can only be 72 // Adds a block of data to be uploaded in a POST body. This can only be
73 // called after Start(). 73 // called after Start().
74 void AppendChunkToUpload(const std::string& data, bool is_last_chunk); 74 void AppendChunkToUpload(const std::string& data, bool is_last_chunk);
75 // |flags| are flags to apply to the load operation--these should be 75 // |flags| are flags to apply to the load operation--these should be
76 // one or more of the LOAD_* flags defined in net/base/load_flags.h. 76 // one or more of the LOAD_* flags defined in net/base/load_flags.h.
77 void SetLoadFlags(int load_flags); 77 void SetLoadFlags(int load_flags);
78 int GetLoadFlags() const; 78 int GetLoadFlags() const;
79 void SetReferrer(const std::string& referrer); 79 void SetReferrer(const std::string& referrer);
80 void SetReferrerPolicy(URLRequest::ReferrerPolicy referrer_policy);
81 void SetExtraRequestHeaders(const std::string& extra_request_headers); 80 void SetExtraRequestHeaders(const std::string& extra_request_headers);
82 void AddExtraRequestHeader(const std::string& header_line); 81 void AddExtraRequestHeader(const std::string& header_line);
83 void SetRequestContext(URLRequestContextGetter* request_context_getter); 82 void SetRequestContext(URLRequestContextGetter* request_context_getter);
84 // Set the URL that should be consulted for the third-party cookie 83 // Set the URL that should be consulted for the third-party cookie
85 // blocking policy. 84 // blocking policy.
86 void SetFirstPartyForCookies(const GURL& first_party_for_cookies); 85 void SetFirstPartyForCookies(const GURL& first_party_for_cookies);
87 // Set the key and data callback that is used when setting the user 86 // Set the key and data callback that is used when setting the user
88 // data on any URLRequest objects this object creates. 87 // data on any URLRequest objects this object creates.
89 void SetURLRequestUserData( 88 void SetURLRequestUserData(
90 const void* key, 89 const void* key,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 235
237 bool upload_content_set_; // SetUploadData has been called 236 bool upload_content_set_; // SetUploadData has been called
238 std::string upload_content_; // HTTP POST payload 237 std::string upload_content_; // HTTP POST payload
239 base::FilePath upload_file_path_; // Path to file containing POST payload 238 base::FilePath upload_file_path_; // Path to file containing POST payload
240 uint64 upload_range_offset_; // Offset from the beginning of the file 239 uint64 upload_range_offset_; // Offset from the beginning of the file
241 // to be uploaded. 240 // to be uploaded.
242 uint64 upload_range_length_; // The length of the part of file to be 241 uint64 upload_range_length_; // The length of the part of file to be
243 // uploaded. 242 // uploaded.
244 std::string upload_content_type_; // MIME type of POST payload 243 std::string upload_content_type_; // MIME type of POST payload
245 std::string referrer_; // HTTP Referer header value and policy 244 std::string referrer_; // HTTP Referer header value and policy
246 URLRequest::ReferrerPolicy referrer_policy_;
247 bool is_chunked_upload_; // True if using chunked transfer encoding 245 bool is_chunked_upload_; // True if using chunked transfer encoding
248 246
249 // Used to determine how long to wait before making a request or doing a 247 // Used to determine how long to wait before making a request or doing a
250 // retry. 248 // retry.
251 // 249 //
252 // Both of them can only be accessed on the IO thread. 250 // Both of them can only be accessed on the IO thread.
253 // 251 //
254 // We need not only the throttler entry for |original_URL|, but also 252 // We need not only the throttler entry for |original_URL|, but also
255 // the one for |url|. For example, consider the case that URL A 253 // the one for |url|. For example, consider the case that URL A
256 // redirects to URL B, for which the server returns a 500 254 // redirects to URL B, for which the server returns a 500
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 base::debug::StackTrace stack_trace_; 314 base::debug::StackTrace stack_trace_;
317 315
318 static base::LazyInstance<Registry> g_registry; 316 static base::LazyInstance<Registry> g_registry;
319 317
320 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); 318 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore);
321 }; 319 };
322 320
323 } // namespace net 321 } // namespace net
324 322
325 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ 323 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher.h ('k') | net/url_request/url_fetcher_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698