| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 // to handle those. | 299 // to handle those. |
| 300 // NOTE: This will also return true for URLs that are handled by | 300 // NOTE: This will also return true for URLs that are handled by |
| 301 // ProtocolFactories that only work for requests that are scoped to a | 301 // ProtocolFactories that only work for requests that are scoped to a |
| 302 // Profile. | 302 // Profile. |
| 303 static bool IsHandledURL(const GURL& url); | 303 static bool IsHandledURL(const GURL& url); |
| 304 | 304 |
| 305 // Allow access to file:// on ChromeOS for tests. | 305 // Allow access to file:// on ChromeOS for tests. |
| 306 static void AllowFileAccess(); | 306 static void AllowFileAccess(); |
| 307 static bool IsFileAccessAllowed(); | 307 static bool IsFileAccessAllowed(); |
| 308 | 308 |
| 309 // See switches::kEnableMacCookies. | |
| 310 static void EnableMacCookies(); | |
| 311 static bool AreMacCookiesEnabled(); | |
| 312 | |
| 313 // The original url is the url used to initialize the request, and it may | 309 // The original url is the url used to initialize the request, and it may |
| 314 // differ from the url if the request was redirected. | 310 // differ from the url if the request was redirected. |
| 315 const GURL& original_url() const { return url_chain_.front(); } | 311 const GURL& original_url() const { return url_chain_.front(); } |
| 316 // The chain of urls traversed by this request. If the request had no | 312 // The chain of urls traversed by this request. If the request had no |
| 317 // redirects, this vector will contain one element. | 313 // redirects, this vector will contain one element. |
| 318 const std::vector<GURL>& url_chain() const { return url_chain_; } | 314 const std::vector<GURL>& url_chain() const { return url_chain_; } |
| 319 const GURL& url() const { return url_chain_.back(); } | 315 const GURL& url() const { return url_chain_.back(); } |
| 320 | 316 |
| 321 // The URL that should be consulted for the third-party cookie blocking | 317 // The URL that should be consulted for the third-party cookie blocking |
| 322 // policy. | 318 // policy. |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 scoped_refptr<AuthChallengeInfo> auth_info_; | 758 scoped_refptr<AuthChallengeInfo> auth_info_; |
| 763 | 759 |
| 764 base::TimeTicks creation_time_; | 760 base::TimeTicks creation_time_; |
| 765 | 761 |
| 766 DISALLOW_COPY_AND_ASSIGN(URLRequest); | 762 DISALLOW_COPY_AND_ASSIGN(URLRequest); |
| 767 }; | 763 }; |
| 768 | 764 |
| 769 } // namespace net | 765 } // namespace net |
| 770 | 766 |
| 771 #endif // NET_URL_REQUEST_URL_REQUEST_H_ | 767 #endif // NET_URL_REQUEST_URL_REQUEST_H_ |
| OLD | NEW |