| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // The original url is the url used to initialize the request, and it may | 251 // The original url is the url used to initialize the request, and it may |
| 252 // differ from the url if the request was redirected. | 252 // differ from the url if the request was redirected. |
| 253 const GURL& original_url() const { return original_url_; } | 253 const GURL& original_url() const { return original_url_; } |
| 254 const GURL& url() const { return url_; } | 254 const GURL& url() const { return url_; } |
| 255 | 255 |
| 256 // The URL that should be consulted for the third-party cookie blocking | 256 // The URL that should be consulted for the third-party cookie blocking |
| 257 // policy. | 257 // policy. |
| 258 const GURL& first_party_for_cookies() const { | 258 const GURL& first_party_for_cookies() const { |
| 259 return first_party_for_cookies_; | 259 return first_party_for_cookies_; |
| 260 } | 260 } |
| 261 // This method may be called before Start() or FollowDeferredRedirect() is |
| 262 // called. |
| 261 void set_first_party_for_cookies(const GURL& first_party_for_cookies); | 263 void set_first_party_for_cookies(const GURL& first_party_for_cookies); |
| 262 | 264 |
| 263 // The request method, as an uppercase string. "GET" is the default value. | 265 // The request method, as an uppercase string. "GET" is the default value. |
| 264 // The request method may only be changed before Start() is called and | 266 // The request method may only be changed before Start() is called and |
| 265 // should only be assigned an uppercase value. | 267 // should only be assigned an uppercase value. |
| 266 const std::string& method() const { return method_; } | 268 const std::string& method() const { return method_; } |
| 267 void set_method(const std::string& method); | 269 void set_method(const std::string& method); |
| 268 | 270 |
| 269 // The referrer URL for the request. This header may actually be suppressed | 271 // The referrer URL for the request. This header may actually be suppressed |
| 270 // from the underlying network request for security reasons (e.g., a HTTPS | 272 // from the underlying network request for security reasons (e.g., a HTTPS |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 // this to determine which URLRequest to allocate sockets to first. | 610 // this to determine which URLRequest to allocate sockets to first. |
| 609 int priority_; | 611 int priority_; |
| 610 | 612 |
| 611 RequestTracker<URLRequest>::Node request_tracker_node_; | 613 RequestTracker<URLRequest>::Node request_tracker_node_; |
| 612 base::LeakTracker<URLRequest> leak_tracker_; | 614 base::LeakTracker<URLRequest> leak_tracker_; |
| 613 | 615 |
| 614 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 616 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 615 }; | 617 }; |
| 616 | 618 |
| 617 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 619 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |