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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void set_was_prefetcher(bool value) { was_prefetcher_ = value; } | 179 void set_was_prefetcher(bool value) { was_prefetcher_ = value; } |
180 bool was_prefetcher() const { return was_prefetcher_; } | 180 bool was_prefetcher() const { return was_prefetcher_; } |
181 | 181 |
182 void set_was_referred_by_prefetcher(bool value) { | 182 void set_was_referred_by_prefetcher(bool value) { |
183 was_referred_by_prefetcher_ = value; | 183 was_referred_by_prefetcher_ = value; |
184 } | 184 } |
185 bool was_referred_by_prefetcher() const { | 185 bool was_referred_by_prefetcher() const { |
186 return was_referred_by_prefetcher_; | 186 return was_referred_by_prefetcher_; |
187 } | 187 } |
188 | 188 |
| 189 void set_was_after_preconnect_request(bool value) { |
| 190 was_after_preconnect_request_ = value; |
| 191 } |
| 192 bool was_after_preconnect_request() { return was_after_preconnect_request_; } |
| 193 |
189 // Record the nature of this load, for use when histogramming page load times. | 194 // Record the nature of this load, for use when histogramming page load times. |
190 LoadType load_type() const { return load_type_; } | 195 LoadType load_type() const { return load_type_; } |
191 void set_load_type(LoadType load_type) { load_type_ = load_type; } | 196 void set_load_type(LoadType load_type) { load_type_ = load_type; } |
192 | 197 |
193 NavigationState* navigation_state() { return navigation_state_.get(); } | 198 NavigationState* navigation_state() { return navigation_state_.get(); } |
194 void set_navigation_state(NavigationState* navigation_state); | 199 void set_navigation_state(NavigationState* navigation_state); |
195 | 200 |
196 bool can_load_local_resources() const { return can_load_local_resources_; } | 201 bool can_load_local_resources() const { return can_load_local_resources_; } |
197 void set_can_load_local_resources(bool can_load) { | 202 void set_can_load_local_resources(bool can_load) { |
198 can_load_local_resources_ = can_load; | 203 can_load_local_resources_ = can_load; |
(...skipping 14 matching lines...) Expand all Loading... |
213 std::string npn_negotiated_protocol_; | 218 std::string npn_negotiated_protocol_; |
214 bool was_alternate_protocol_available_; | 219 bool was_alternate_protocol_available_; |
215 net::HttpResponseInfo::ConnectionInfo connection_info_; | 220 net::HttpResponseInfo::ConnectionInfo connection_info_; |
216 bool was_fetched_via_proxy_; | 221 bool was_fetched_via_proxy_; |
217 | 222 |
218 scoped_ptr<PasswordForm> password_form_data_; | 223 scoped_ptr<PasswordForm> password_form_data_; |
219 | 224 |
220 // A prefetcher is a page that contains link rel=prefetch elements. | 225 // A prefetcher is a page that contains link rel=prefetch elements. |
221 bool was_prefetcher_; | 226 bool was_prefetcher_; |
222 bool was_referred_by_prefetcher_; | 227 bool was_referred_by_prefetcher_; |
| 228 bool was_after_preconnect_request_; |
223 | 229 |
224 LoadType load_type_; | 230 LoadType load_type_; |
225 | 231 |
226 scoped_ptr<NavigationState> navigation_state_; | 232 scoped_ptr<NavigationState> navigation_state_; |
227 | 233 |
228 bool can_load_local_resources_; | 234 bool can_load_local_resources_; |
229 }; | 235 }; |
230 | 236 |
231 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 237 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
232 | 238 |
233 } // namespace content | 239 } // namespace content |
OLD | NEW |