| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // The ResourceRequestDetails object contains additional details about a | 5 // The ResourceRequestDetails object contains additional details about a |
| 6 // resource request. It copies many of the publicly accessible member variables | 6 // resource request. It copies many of the publicly accessible member variables |
| 7 // of net::URLRequest, but exists on the UI thread. | 7 // of net::URLRequest, but exists on the UI thread. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ | 9 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ |
| 10 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ | 10 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ |
| 11 #pragma once | 11 #pragma once |
| (...skipping 17 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 const GURL& url() const { return url_; } | 30 const GURL& url() const { return url_; } |
| 31 const GURL& original_url() const { return original_url_; } | 31 const GURL& original_url() const { return original_url_; } |
| 32 const std::string& method() const { return method_; } | 32 const std::string& method() const { return method_; } |
| 33 const std::string& referrer() const { return referrer_; } | 33 const std::string& referrer() const { return referrer_; } |
| 34 const std::string& frame_origin() const { return frame_origin_; } | 34 const std::string& frame_origin() const { return frame_origin_; } |
| 35 const std::string& main_frame_origin() const { return main_frame_origin_; } | 35 const std::string& main_frame_origin() const { return main_frame_origin_; } |
| 36 bool has_upload() const { return has_upload_; } | 36 bool has_upload() const { return has_upload_; } |
| 37 int load_flags() const { return load_flags_; } | 37 int load_flags() const { return load_flags_; } |
| 38 int origin_child_id() const { return origin_child_id_; } | 38 int origin_child_id() const { return origin_child_id_; } |
| 39 const URLRequestStatus& status() const { return status_; } | 39 const net::URLRequestStatus& status() const { return status_; } |
| 40 int ssl_cert_id() const { return ssl_cert_id_; } | 40 int ssl_cert_id() const { return ssl_cert_id_; } |
| 41 int ssl_cert_status() const { return ssl_cert_status_; } | 41 int ssl_cert_status() const { return ssl_cert_status_; } |
| 42 ResourceType::Type resource_type() const { return resource_type_; } | 42 ResourceType::Type resource_type() const { return resource_type_; } |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 GURL url_; | 45 GURL url_; |
| 46 GURL original_url_; | 46 GURL original_url_; |
| 47 std::string method_; | 47 std::string method_; |
| 48 std::string referrer_; | 48 std::string referrer_; |
| 49 std::string frame_origin_; | 49 std::string frame_origin_; |
| 50 std::string main_frame_origin_; | 50 std::string main_frame_origin_; |
| 51 bool has_upload_; | 51 bool has_upload_; |
| 52 int load_flags_; | 52 int load_flags_; |
| 53 int origin_child_id_; | 53 int origin_child_id_; |
| 54 URLRequestStatus status_; | 54 net::URLRequestStatus status_; |
| 55 int ssl_cert_id_; | 55 int ssl_cert_id_; |
| 56 int ssl_cert_status_; | 56 int ssl_cert_status_; |
| 57 ResourceType::Type resource_type_; | 57 ResourceType::Type resource_type_; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 // Details about a redirection of a resource request. | 60 // Details about a redirection of a resource request. |
| 61 class ResourceRedirectDetails : public ResourceRequestDetails { | 61 class ResourceRedirectDetails : public ResourceRequestDetails { |
| 62 public: | 62 public: |
| 63 ResourceRedirectDetails(const net::URLRequest* request, | 63 ResourceRedirectDetails(const net::URLRequest* request, |
| 64 int cert_id, | 64 int cert_id, |
| 65 const GURL& new_url); | 65 const GURL& new_url); |
| 66 virtual ~ResourceRedirectDetails(); | 66 virtual ~ResourceRedirectDetails(); |
| 67 | 67 |
| 68 // The URL to which we are being redirected. | 68 // The URL to which we are being redirected. |
| 69 const GURL& new_url() const { return new_url_; } | 69 const GURL& new_url() const { return new_url_; } |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 GURL new_url_; | 72 GURL new_url_; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ | 75 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_REQUEST_DETAILS_H_ |
| OLD | NEW |