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

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

Issue 2183153002: NQE: Move ECT to net:: namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, also fixed comnpilation error Created 4 years, 4 months 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
« no previous file with comments | « content/common/resource_messages.h ('k') | content/public/common/resource_response_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 11
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/public/common/resource_devtools_info.h" 16 #include "content/public/common/resource_devtools_info.h"
17 #include "net/base/host_port_pair.h" 17 #include "net/base/host_port_pair.h"
18 #include "net/base/load_timing_info.h" 18 #include "net/base/load_timing_info.h"
19 #include "net/http/http_response_headers.h" 19 #include "net/http/http_response_headers.h"
20 #include "net/http/http_response_info.h" 20 #include "net/http/http_response_info.h"
21 #include "net/nqe/network_quality_estimator.h" 21 #include "net/nqe/effective_connection_type.h"
22 #include "net/ssl/signed_certificate_timestamp_and_status.h" 22 #include "net/ssl/signed_certificate_timestamp_and_status.h"
23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerResponseType.h" 23 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor kerResponseType.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 namespace content { 26 namespace content {
27 27
28 // Note: when modifying this structure, also update ResourceResponse::DeepCopy 28 // Note: when modifying this structure, also update ResourceResponse::DeepCopy
29 // in resource_response.cc. 29 // in resource_response.cc.
30 struct CONTENT_EXPORT ResourceResponseInfo { 30 struct CONTENT_EXPORT ResourceResponseInfo {
31 ResourceResponseInfo(); 31 ResourceResponseInfo();
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 // The cache name of the CacheStorage from where the response is served via 148 // The cache name of the CacheStorage from where the response is served via
149 // the ServiceWorker. Empty if the response isn't from the CacheStorage. 149 // the ServiceWorker. Empty if the response isn't from the CacheStorage.
150 std::string cache_storage_cache_name; 150 std::string cache_storage_cache_name;
151 151
152 // Whether or not the request was for a LoFi version of the resource. 152 // Whether or not the request was for a LoFi version of the resource.
153 bool is_using_lofi; 153 bool is_using_lofi;
154 154
155 // Effective connection type when the resource was fetched. This is populated 155 // Effective connection type when the resource was fetched. This is populated
156 // only for responses that correspond to main frame requests. 156 // only for responses that correspond to main frame requests.
157 net::NetworkQualityEstimator::EffectiveConnectionType 157 net::EffectiveConnectionType effective_connection_type;
158 effective_connection_type;
159 158
160 // List of Signed Certificate Timestamps (SCTs) and their corresponding 159 // List of Signed Certificate Timestamps (SCTs) and their corresponding
161 // validation status. Only present if the renderer process set 160 // validation status. Only present if the renderer process set
162 // report_raw_headers to true. 161 // report_raw_headers to true.
163 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; 162 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps;
164 163
165 // In case this is a CORS response fetched by a ServiceWorker, this is the 164 // In case this is a CORS response fetched by a ServiceWorker, this is the
166 // set of headers that should be exposed. 165 // set of headers that should be exposed.
167 std::vector<std::string> cors_exposed_header_names; 166 std::vector<std::string> cors_exposed_header_names;
168 }; 167 };
169 168
170 } // namespace content 169 } // namespace content
171 170
172 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ 171 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/public/common/resource_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698