| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // True if the response was delivered after NPN is negotiated. | 91 // True if the response was delivered after NPN is negotiated. |
| 92 bool was_alpn_negotiated; | 92 bool was_alpn_negotiated; |
| 93 | 93 |
| 94 // True if response could use alternate protocol. However, browser will | 94 // True if response could use alternate protocol. However, browser will |
| 95 // ignore the alternate protocol when spdy is not enabled on browser side. | 95 // ignore the alternate protocol when spdy is not enabled on browser side. |
| 96 bool was_alternate_protocol_available; | 96 bool was_alternate_protocol_available; |
| 97 | 97 |
| 98 // Information about the type of connection used to fetch this response. | 98 // Information about the type of connection used to fetch this response. |
| 99 net::HttpResponseInfo::ConnectionInfo connection_info; | 99 net::HttpResponseInfo::ConnectionInfo connection_info; |
| 100 | 100 |
| 101 // True if the response was fetched via an explicit proxy (as opposed to a | |
| 102 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. | |
| 103 // Note: we cannot tell if a transparent proxy may have been involved. If | |
| 104 // true, |proxy_server| contains the name of the proxy server that was used. | |
| 105 bool was_fetched_via_proxy; | |
| 106 net::HostPortPair proxy_server; | |
| 107 | |
| 108 // ALPN protocol negotiated with the server. | 101 // ALPN protocol negotiated with the server. |
| 109 std::string alpn_negotiated_protocol; | 102 std::string alpn_negotiated_protocol; |
| 110 | 103 |
| 111 // Remote address of the socket which fetched this resource. | 104 // Remote address of the socket which fetched this resource. |
| 112 net::HostPortPair socket_address; | 105 net::HostPortPair socket_address; |
| 113 | 106 |
| 114 // True if the response was fetched by a ServiceWorker. | 107 // True if the response was fetched by a ServiceWorker. |
| 115 bool was_fetched_via_service_worker; | 108 bool was_fetched_via_service_worker; |
| 116 | 109 |
| 117 // True if the response was fetched by a foreign fetch ServiceWorker; | 110 // True if the response was fetched by a foreign fetch ServiceWorker; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | 174 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; |
| 182 | 175 |
| 183 // 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 |
| 184 // set of headers that should be exposed. | 177 // set of headers that should be exposed. |
| 185 std::vector<std::string> cors_exposed_header_names; | 178 std::vector<std::string> cors_exposed_header_names; |
| 186 }; | 179 }; |
| 187 | 180 |
| 188 } // namespace content | 181 } // namespace content |
| 189 | 182 |
| 190 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 183 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
| OLD | NEW |