OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_DOCUMENT_STATE_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 6 #define CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 void set_connection_info( | 154 void set_connection_info( |
155 net::HttpResponseInfo::ConnectionInfo connection_info) { | 155 net::HttpResponseInfo::ConnectionInfo connection_info) { |
156 connection_info_ = connection_info; | 156 connection_info_ = connection_info; |
157 } | 157 } |
158 | 158 |
159 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } | 159 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } |
160 void set_was_fetched_via_proxy(bool value) { | 160 void set_was_fetched_via_proxy(bool value) { |
161 was_fetched_via_proxy_ = value; | 161 was_fetched_via_proxy_ = value; |
162 } | 162 } |
163 | 163 |
| 164 net::HostPortPair proxy_server() const { return proxy_server_; } |
| 165 void set_proxy_server(net::HostPortPair proxy_server) { |
| 166 proxy_server_ = proxy_server; |
| 167 } |
| 168 |
164 void set_was_prefetcher(bool value) { was_prefetcher_ = value; } | 169 void set_was_prefetcher(bool value) { was_prefetcher_ = value; } |
165 bool was_prefetcher() const { return was_prefetcher_; } | 170 bool was_prefetcher() const { return was_prefetcher_; } |
166 | 171 |
167 void set_was_referred_by_prefetcher(bool value) { | 172 void set_was_referred_by_prefetcher(bool value) { |
168 was_referred_by_prefetcher_ = value; | 173 was_referred_by_prefetcher_ = value; |
169 } | 174 } |
170 bool was_referred_by_prefetcher() const { | 175 bool was_referred_by_prefetcher() const { |
171 return was_referred_by_prefetcher_; | 176 return was_referred_by_prefetcher_; |
172 } | 177 } |
173 | 178 |
(...skipping 23 matching lines...) Expand all Loading... |
197 base::Time first_paint_time_; | 202 base::Time first_paint_time_; |
198 base::Time first_paint_after_load_time_; | 203 base::Time first_paint_after_load_time_; |
199 bool load_histograms_recorded_; | 204 bool load_histograms_recorded_; |
200 bool web_timing_histograms_recorded_; | 205 bool web_timing_histograms_recorded_; |
201 bool was_fetched_via_spdy_; | 206 bool was_fetched_via_spdy_; |
202 bool was_npn_negotiated_; | 207 bool was_npn_negotiated_; |
203 std::string npn_negotiated_protocol_; | 208 std::string npn_negotiated_protocol_; |
204 bool was_alternate_protocol_available_; | 209 bool was_alternate_protocol_available_; |
205 net::HttpResponseInfo::ConnectionInfo connection_info_; | 210 net::HttpResponseInfo::ConnectionInfo connection_info_; |
206 bool was_fetched_via_proxy_; | 211 bool was_fetched_via_proxy_; |
| 212 net::HostPortPair proxy_server_; |
207 | 213 |
208 // A prefetcher is a page that contains link rel=prefetch elements. | 214 // A prefetcher is a page that contains link rel=prefetch elements. |
209 bool was_prefetcher_; | 215 bool was_prefetcher_; |
210 bool was_referred_by_prefetcher_; | 216 bool was_referred_by_prefetcher_; |
211 bool was_after_preconnect_request_; | 217 bool was_after_preconnect_request_; |
212 | 218 |
213 LoadType load_type_; | 219 LoadType load_type_; |
214 | 220 |
215 scoped_ptr<NavigationState> navigation_state_; | 221 scoped_ptr<NavigationState> navigation_state_; |
216 | 222 |
217 bool can_load_local_resources_; | 223 bool can_load_local_resources_; |
218 }; | 224 }; |
219 | 225 |
220 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 226 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
221 | 227 |
222 } // namespace content | 228 } // namespace content |
OLD | NEW |