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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_request.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_REQUEST_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_
6 #define NET_URL_REQUEST_URL_REQUEST_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 return first_party_url_policy_; 274 return first_party_url_policy_;
275 } 275 }
276 void set_first_party_url_policy(FirstPartyURLPolicy first_party_url_policy); 276 void set_first_party_url_policy(FirstPartyURLPolicy first_party_url_policy);
277 277
278 // The request method, as an uppercase string. "GET" is the default value. 278 // The request method, as an uppercase string. "GET" is the default value.
279 // The request method may only be changed before Start() is called and 279 // The request method may only be changed before Start() is called and
280 // should only be assigned an uppercase value. 280 // should only be assigned an uppercase value.
281 const std::string& method() const { return method_; } 281 const std::string& method() const { return method_; }
282 void set_method(const std::string& method); 282 void set_method(const std::string& method);
283 283
284 // Determines the new method of the request afer following a redirect.
285 // |method| is the method used to arrive at the redirect,
286 // |http_status_code| is the status code associated with the redirect.
287 static std::string ComputeMethodForRedirect(const std::string& method,
288 int http_status_code);
289
290 // The referrer URL for the request. This header may actually be suppressed 284 // The referrer URL for the request. This header may actually be suppressed
291 // from the underlying network request for security reasons (e.g., a HTTPS 285 // from the underlying network request for security reasons (e.g., a HTTPS
292 // URL will not be sent as the referrer for a HTTP request). The referrer 286 // URL will not be sent as the referrer for a HTTP request). The referrer
293 // may only be changed before Start() is called. 287 // may only be changed before Start() is called.
294 const std::string& referrer() const { return referrer_; } 288 const std::string& referrer() const { return referrer_; }
295 // Referrer is sanitized to remove URL fragment, user name and password. 289 // Referrer is sanitized to remove URL fragment, user name and password.
296 void SetReferrer(const std::string& referrer); 290 void SetReferrer(const std::string& referrer);
297 291
298 // The referrer policy to apply when updating the referrer during redirects. 292 // The referrer policy to apply when updating the referrer during redirects.
299 // The referrer policy may only be changed before Start() is called. 293 // The referrer policy may only be changed before Start() is called.
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 820
827 // The proxy server used for this request, if any. 821 // The proxy server used for this request, if any.
828 HostPortPair proxy_server_; 822 HostPortPair proxy_server_;
829 823
830 DISALLOW_COPY_AND_ASSIGN(URLRequest); 824 DISALLOW_COPY_AND_ASSIGN(URLRequest);
831 }; 825 };
832 826
833 } // namespace net 827 } // namespace net
834 828
835 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 829 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698