| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 // The path to a file that will contain the response body. It may only | 83 // The path to a file that will contain the response body. It may only |
| 84 // contain a portion of the response body at the time that the ResponseInfo | 84 // contain a portion of the response body at the time that the ResponseInfo |
| 85 // becomes available. | 85 // becomes available. |
| 86 base::FilePath download_file_path; | 86 base::FilePath download_file_path; |
| 87 | 87 |
| 88 // True if the response was delivered using SPDY. | 88 // True if the response was delivered using SPDY. |
| 89 bool was_fetched_via_spdy; | 89 bool was_fetched_via_spdy; |
| 90 | 90 |
| 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_npn_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 | 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. | 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 | 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. | 104 // true, |proxy_server| contains the name of the proxy server that was used. |
| 105 bool was_fetched_via_proxy; | 105 bool was_fetched_via_proxy; |
| 106 net::HostPortPair proxy_server; | 106 net::HostPortPair proxy_server; |
| 107 | 107 |
| 108 // NPN protocol negotiated with the server. | 108 // ALPN protocol negotiated with the server. |
| 109 std::string npn_negotiated_protocol; | 109 std::string alpn_negotiated_protocol; |
| 110 | 110 |
| 111 // Remote address of the socket which fetched this resource. | 111 // Remote address of the socket which fetched this resource. |
| 112 net::HostPortPair socket_address; | 112 net::HostPortPair socket_address; |
| 113 | 113 |
| 114 // True if the response was fetched by a ServiceWorker. | 114 // True if the response was fetched by a ServiceWorker. |
| 115 bool was_fetched_via_service_worker; | 115 bool was_fetched_via_service_worker; |
| 116 | 116 |
| 117 // True if the response was fetched by a foreign fetch ServiceWorker; | 117 // True if the response was fetched by a foreign fetch ServiceWorker; |
| 118 bool was_fetched_via_foreign_fetch; | 118 bool was_fetched_via_foreign_fetch; |
| 119 | 119 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; | 181 net::SignedCertificateTimestampAndStatusList signed_certificate_timestamps; |
| 182 | 182 |
| 183 // In case this is a CORS response fetched by a ServiceWorker, this is the | 183 // In case this is a CORS response fetched by a ServiceWorker, this is the |
| 184 // set of headers that should be exposed. | 184 // set of headers that should be exposed. |
| 185 std::vector<std::string> cors_exposed_header_names; | 185 std::vector<std::string> cors_exposed_header_names; |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 } // namespace content | 188 } // namespace content |
| 189 | 189 |
| 190 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 190 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
| OLD | NEW |