OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMMON_RESOURCE_RESPONSE_INFO_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 6 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // The response headers or NULL if the URL type does not support headers. | 43 // The response headers or NULL if the URL type does not support headers. |
44 scoped_refptr<net::HttpResponseHeaders> headers; | 44 scoped_refptr<net::HttpResponseHeaders> headers; |
45 | 45 |
46 // The mime type of the response. This may be a derived value. | 46 // The mime type of the response. This may be a derived value. |
47 std::string mime_type; | 47 std::string mime_type; |
48 | 48 |
49 // The character encoding of the response or none if not applicable to the | 49 // The character encoding of the response or none if not applicable to the |
50 // response's mime type. This may be a derived value. | 50 // response's mime type. This may be a derived value. |
51 std::string charset; | 51 std::string charset; |
52 | 52 |
53 // An opaque string carrying security information pertaining to this | |
54 // response. This may include information about the SSL connection used. | |
55 std::string security_info; | |
56 | |
57 // True if the resource was loaded in spite of certificate errors. | 53 // True if the resource was loaded in spite of certificate errors. |
58 bool has_major_certificate_errors; | 54 bool has_major_certificate_errors; |
59 | 55 |
60 // Content length if available. -1 if not available | 56 // Content length if available. -1 if not available |
61 int64_t content_length; | 57 int64_t content_length; |
62 | 58 |
63 // Length of the encoded data transferred over the network. In case there is | 59 // Length of the encoded data transferred over the network. In case there is |
64 // no data, contains -1. | 60 // no data, contains -1. |
65 int64_t encoded_data_length; | 61 int64_t encoded_data_length; |
66 | 62 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | 176 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; |
181 | 177 |
182 // In case this is a CORS response fetched by a ServiceWorker, this is the | 178 // In case this is a CORS response fetched by a ServiceWorker, this is the |
183 // set of headers that should be exposed. | 179 // set of headers that should be exposed. |
184 std::vector<std::string> cors_exposed_header_names; | 180 std::vector<std::string> cors_exposed_header_names; |
185 }; | 181 }; |
186 | 182 |
187 } // namespace content | 183 } // namespace content |
188 | 184 |
189 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 185 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
OLD | NEW |