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 | |
56 // Content length if available. -1 if not available | 53 // Content length if available. -1 if not available |
57 int64 content_length; | 54 int64 content_length; |
58 | 55 |
59 // Length of the encoded data transferred over the network. In case there is | 56 // Length of the encoded data transferred over the network. In case there is |
60 // no data, contains -1. | 57 // no data, contains -1. |
61 int64 encoded_data_length; | 58 int64 encoded_data_length; |
62 | 59 |
63 // The appcache this response was loaded from, or kAppCacheNoCacheId. | 60 // The appcache this response was loaded from, or kAppCacheNoCacheId. |
64 int64 appcache_id; | 61 int64 appcache_id; |
65 | 62 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // TODO(ksakamoto): Move this to net::LoadTimingInfo. | 130 // TODO(ksakamoto): Move this to net::LoadTimingInfo. |
134 base::TimeTicks service_worker_ready_time; | 131 base::TimeTicks service_worker_ready_time; |
135 | 132 |
136 // Whether or not the request was for a LoFi version of the resource. | 133 // Whether or not the request was for a LoFi version of the resource. |
137 bool is_using_lofi; | 134 bool is_using_lofi; |
138 }; | 135 }; |
139 | 136 |
140 } // namespace content | 137 } // namespace content |
141 | 138 |
142 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 139 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
OLD | NEW |