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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 bool was_alternate_protocol_available; | 87 bool was_alternate_protocol_available; |
88 | 88 |
89 // Information about the type of connection used to fetch this response. | 89 // Information about the type of connection used to fetch this response. |
90 net::HttpResponseInfo::ConnectionInfo connection_info; | 90 net::HttpResponseInfo::ConnectionInfo connection_info; |
91 | 91 |
92 // True if the response was fetched via an explicit proxy (as opposed to a | 92 // True if the response was fetched via an explicit proxy (as opposed to a |
93 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. | 93 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. |
94 // Note: we cannot tell if a transparent proxy may have been involved. | 94 // Note: we cannot tell if a transparent proxy may have been involved. |
95 bool was_fetched_via_proxy; | 95 bool was_fetched_via_proxy; |
96 | 96 |
97 // Remote address of the proxy server used for this resource, if one was used. | |
98 net::HostPortPair proxy_server; | |
Charlie Reis
2014/10/30 18:05:32
It wasn't clear to me whether we need both this an
jeremyim
2014/10/30 19:00:36
Done.
| |
99 | |
97 // NPN protocol negotiated with the server. | 100 // NPN protocol negotiated with the server. |
98 std::string npn_negotiated_protocol; | 101 std::string npn_negotiated_protocol; |
99 | 102 |
100 // Remote address of the socket which fetched this resource. | 103 // Remote address of the socket which fetched this resource. |
101 net::HostPortPair socket_address; | 104 net::HostPortPair socket_address; |
102 | 105 |
103 // True if the response was fetched by a ServiceWorker. | 106 // True if the response was fetched by a ServiceWorker. |
104 bool was_fetched_via_service_worker; | 107 bool was_fetched_via_service_worker; |
105 | 108 |
106 // True when the request whoes mode is |CORS| or |CORS-with-forced-preflight| | 109 // True when the request whoes mode is |CORS| or |CORS-with-forced-preflight| |
(...skipping 12 matching lines...) Expand all Loading... | |
119 // ServiceWorker Timing Information. These will be set if the response is | 122 // ServiceWorker Timing Information. These will be set if the response is |
120 // provided by the ServiceWorker, or kept empty. | 123 // provided by the ServiceWorker, or kept empty. |
121 base::TimeTicks service_worker_fetch_start; | 124 base::TimeTicks service_worker_fetch_start; |
122 base::TimeTicks service_worker_fetch_ready; | 125 base::TimeTicks service_worker_fetch_ready; |
123 base::TimeTicks service_worker_fetch_end; | 126 base::TimeTicks service_worker_fetch_end; |
124 }; | 127 }; |
125 | 128 |
126 } // namespace content | 129 } // namespace content |
127 | 130 |
128 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 131 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
OLD | NEW |