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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 std::string mime_type; | 43 std::string mime_type; |
44 | 44 |
45 // The character encoding of the response or none if not applicable to the | 45 // The character encoding of the response or none if not applicable to the |
46 // response's mime type. This may be a derived value. | 46 // response's mime type. This may be a derived value. |
47 std::string charset; | 47 std::string charset; |
48 | 48 |
49 // An opaque string carrying security information pertaining to this | 49 // An opaque string carrying security information pertaining to this |
50 // response. This may include information about the SSL connection used. | 50 // response. This may include information about the SSL connection used. |
51 std::string security_info; | 51 std::string security_info; |
52 | 52 |
| 53 // True if the resource was loaded in spite of certificate errors. |
| 54 bool has_major_certificate_errors; |
| 55 |
53 // Content length if available. -1 if not available | 56 // Content length if available. -1 if not available |
54 int64 content_length; | 57 int64 content_length; |
55 | 58 |
56 // 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 |
57 // no data, contains -1. | 60 // no data, contains -1. |
58 int64 encoded_data_length; | 61 int64 encoded_data_length; |
59 | 62 |
60 // The appcache this response was loaded from, or kAppCacheNoCacheId. | 63 // The appcache this response was loaded from, or kAppCacheNoCacheId. |
61 int64 appcache_id; | 64 int64 appcache_id; |
62 | 65 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // TODO(ksakamoto): Move this to net::LoadTimingInfo. | 133 // TODO(ksakamoto): Move this to net::LoadTimingInfo. |
131 base::TimeTicks service_worker_ready_time; | 134 base::TimeTicks service_worker_ready_time; |
132 | 135 |
133 // Whether or not the request was for a LoFi version of the resource. | 136 // Whether or not the request was for a LoFi version of the resource. |
134 bool is_using_lofi; | 137 bool is_using_lofi; |
135 }; | 138 }; |
136 | 139 |
137 } // namespace content | 140 } // namespace content |
138 | 141 |
139 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 142 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
OLD | NEW |