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 CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/base/host_port_pair.h" | 10 #include "net/base/host_port_pair.h" |
(...skipping 22 matching lines...) Expand all Loading... | |
33 std::string referrer; | 33 std::string referrer; |
34 bool has_upload; | 34 bool has_upload; |
35 int load_flags; | 35 int load_flags; |
36 int origin_child_id; | 36 int origin_child_id; |
37 net::URLRequestStatus status; | 37 net::URLRequestStatus status; |
38 int ssl_cert_id; | 38 int ssl_cert_id; |
39 net::CertStatus ssl_cert_status; | 39 net::CertStatus ssl_cert_status; |
40 ResourceType::Type resource_type; | 40 ResourceType::Type resource_type; |
41 net::HostPortPair socket_address; | 41 net::HostPortPair socket_address; |
42 int render_frame_id; | 42 int render_frame_id; |
43 // HTTP response code. | |
44 // Defaults to 200 if there is no response code among headers. | |
45 // -1 if there are no response headers yet for some reason. | |
Charlie Reis
2014/04/08 23:22:29
nit: Remove "for some reason."
| |
46 // Can be also 0 if the response code text seems to exist but could not be | |
Charlie Reis
2014/04/08 23:22:29
Most of this comment seems to be taken from http_r
| |
47 // parsed. | |
48 int http_response_code; | |
43 }; | 49 }; |
44 | 50 |
45 // Details about a redirection of a resource request. | 51 // Details about a redirection of a resource request. |
46 struct ResourceRedirectDetails : public ResourceRequestDetails { | 52 struct ResourceRedirectDetails : public ResourceRequestDetails { |
47 ResourceRedirectDetails(const net::URLRequest* request, | 53 ResourceRedirectDetails(const net::URLRequest* request, |
48 int cert_id, | 54 int cert_id, |
49 const GURL& new_url); | 55 const GURL& new_url); |
50 virtual ~ResourceRedirectDetails(); | 56 virtual ~ResourceRedirectDetails(); |
51 | 57 |
52 // The URL to which we are being redirected. | 58 // The URL to which we are being redirected. |
53 GURL new_url; | 59 GURL new_url; |
54 }; | 60 }; |
55 | 61 |
56 } // namespace content | 62 } // namespace content |
57 | 63 |
58 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_ | 64 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_REQUEST_DETAILS_H_ |
OLD | NEW |