Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: content/public/common/resource_response_info.h

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: add back previews_unspecified Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // True when the response is served from the CacheStorage via the 136 // True when the response is served from the CacheStorage via the
137 // ServiceWorker. 137 // ServiceWorker.
138 bool is_in_cache_storage = false; 138 bool is_in_cache_storage = false;
139 139
140 // The cache name of the CacheStorage from where the response is served via 140 // The cache name of the CacheStorage from where the response is served via
141 // the ServiceWorker. Empty if the response isn't from the CacheStorage. 141 // the ServiceWorker. Empty if the response isn't from the CacheStorage.
142 std::string cache_storage_cache_name; 142 std::string cache_storage_cache_name;
143 143
144 // Whether or not the request was for a LoFi version of the resource. 144 // Whether or not the request was for a LoFi version of the resource.
145 bool is_using_lofi; 145 int previews_state;
nasko 2016/12/08 22:19:33 PreviewsState
megjablon 2016/12/09 20:35:55 Done.
146 146
147 // Effective connection type when the resource was fetched. This is populated 147 // Effective connection type when the resource was fetched. This is populated
148 // only for responses that correspond to main frame requests. 148 // only for responses that correspond to main frame requests.
149 net::EffectiveConnectionType effective_connection_type; 149 net::EffectiveConnectionType effective_connection_type;
150 150
151 // DER-encoded X509Certificate certificate chain. Only present if the renderer 151 // DER-encoded X509Certificate certificate chain. Only present if the renderer
152 // process set report_raw_headers to true. 152 // process set report_raw_headers to true.
153 std::vector<std::string> certificate; 153 std::vector<std::string> certificate;
154 154
155 // Bitmask of status info of the SSL certificate. See cert_status_flags.h for 155 // Bitmask of status info of the SSL certificate. See cert_status_flags.h for
(...skipping 18 matching lines...) Expand all
174 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; 174 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps;
175 175
176 // In case this is a CORS response fetched by a ServiceWorker, this is the 176 // In case this is a CORS response fetched by a ServiceWorker, this is the
177 // set of headers that should be exposed. 177 // set of headers that should be exposed.
178 std::vector<std::string> cors_exposed_header_names; 178 std::vector<std::string> cors_exposed_header_names;
179 }; 179 };
180 180
181 } // namespace content 181 } // namespace content
182 182
183 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 183 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698