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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 | 86 |
87 // True if response could use alternate protocol. However, browser will | 87 // True if response could use alternate protocol. However, browser will |
88 // ignore the alternate protocol when spdy is not enabled on browser side. | 88 // ignore the alternate protocol when spdy is not enabled on browser side. |
89 bool was_alternate_protocol_available; | 89 bool was_alternate_protocol_available; |
90 | 90 |
91 // Information about the type of connection used to fetch this response. | 91 // Information about the type of connection used to fetch this response. |
92 net::HttpResponseInfo::ConnectionInfo connection_info; | 92 net::HttpResponseInfo::ConnectionInfo connection_info; |
93 | 93 |
94 // True if the response was fetched via an explicit proxy (as opposed to a | 94 // True if the response was fetched via an explicit proxy (as opposed to a |
95 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. | 95 // transparent proxy). The proxy could be any type of proxy, HTTP or SOCKS. |
96 // Note: we cannot tell if a transparent proxy may have been involved. | 96 // Note: we cannot tell if a transparent proxy may have been involved. If |
97 // true, |proxy_server| contains the name of the proxy server that was used | |
Charlie Reis
2014/10/30 19:19:36
nit: End with a period.
| |
97 bool was_fetched_via_proxy; | 98 bool was_fetched_via_proxy; |
99 net::HostPortPair proxy_server; | |
98 | 100 |
99 // NPN protocol negotiated with the server. | 101 // NPN protocol negotiated with the server. |
100 std::string npn_negotiated_protocol; | 102 std::string npn_negotiated_protocol; |
101 | 103 |
102 // Remote address of the socket which fetched this resource. | 104 // Remote address of the socket which fetched this resource. |
103 net::HostPortPair socket_address; | 105 net::HostPortPair socket_address; |
104 | 106 |
105 // True if the response was fetched by a ServiceWorker. | 107 // True if the response was fetched by a ServiceWorker. |
106 bool was_fetched_via_service_worker; | 108 bool was_fetched_via_service_worker; |
107 | 109 |
(...skipping 13 matching lines...) Expand all Loading... | |
121 // ServiceWorker Timing Information. These will be set if the response is | 123 // ServiceWorker Timing Information. These will be set if the response is |
122 // provided by the ServiceWorker, or kept empty. | 124 // provided by the ServiceWorker, or kept empty. |
123 base::TimeTicks service_worker_fetch_start; | 125 base::TimeTicks service_worker_fetch_start; |
124 base::TimeTicks service_worker_fetch_ready; | 126 base::TimeTicks service_worker_fetch_ready; |
125 base::TimeTicks service_worker_fetch_end; | 127 base::TimeTicks service_worker_fetch_end; |
126 }; | 128 }; |
127 | 129 |
128 } // namespace content | 130 } // namespace content |
129 | 131 |
130 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ | 132 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_INFO_H_ |
OLD | NEW |