| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 void set_web_timing_histograms_recorded(bool value) { | 133 void set_web_timing_histograms_recorded(bool value) { |
| 134 web_timing_histograms_recorded_ = value; | 134 web_timing_histograms_recorded_ = value; |
| 135 } | 135 } |
| 136 | 136 |
| 137 int http_status_code() const { return http_status_code_; } | 137 int http_status_code() const { return http_status_code_; } |
| 138 void set_http_status_code(int http_status_code) { | 138 void set_http_status_code(int http_status_code) { |
| 139 http_status_code_ = http_status_code; | 139 http_status_code_ = http_status_code; |
| 140 } | 140 } |
| 141 | 141 |
| 142 // Indicator if SPDY was used as part of this page load. | 142 // Indicator if SPDY was used as part of this page load. |
| 143 bool was_fetched_via_spdy() const { return was_fetched_via_spdy_; } |
| 143 void set_was_fetched_via_spdy(bool value) { was_fetched_via_spdy_ = value; } | 144 void set_was_fetched_via_spdy(bool value) { was_fetched_via_spdy_ = value; } |
| 144 bool was_fetched_via_spdy() const { return was_fetched_via_spdy_; } | |
| 145 | 145 |
| 146 bool was_npn_negotiated() const { return was_npn_negotiated_; } |
| 146 void set_was_npn_negotiated(bool value) { was_npn_negotiated_ = value; } | 147 void set_was_npn_negotiated(bool value) { was_npn_negotiated_ = value; } |
| 147 bool was_npn_negotiated() const { return was_npn_negotiated_; } | |
| 148 | 148 |
| 149 const std::string& npn_negotiated_protocol() const { |
| 150 return npn_negotiated_protocol_; |
| 151 } |
| 152 void set_npn_negotiated_protocol(std::string& value) { |
| 153 npn_negotiated_protocol_ = value; |
| 154 } |
| 155 |
| 156 bool was_alternate_protocol_available() const { |
| 157 return was_alternate_protocol_available_; |
| 158 } |
| 149 void set_was_alternate_protocol_available(bool value) { | 159 void set_was_alternate_protocol_available(bool value) { |
| 150 was_alternate_protocol_available_ = value; | 160 was_alternate_protocol_available_ = value; |
| 151 } | 161 } |
| 152 bool was_alternate_protocol_available() const { | |
| 153 return was_alternate_protocol_available_; | |
| 154 } | |
| 155 | 162 |
| 163 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } |
| 156 void set_was_fetched_via_proxy(bool value) { | 164 void set_was_fetched_via_proxy(bool value) { |
| 157 was_fetched_via_proxy_ = value; | 165 was_fetched_via_proxy_ = value; |
| 158 } | 166 } |
| 159 bool was_fetched_via_proxy() const { return was_fetched_via_proxy_; } | |
| 160 | 167 |
| 161 const GURL& searchable_form_url() const { return searchable_form_url_; } | 168 const GURL& searchable_form_url() const { return searchable_form_url_; } |
| 162 void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; } | 169 void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; } |
| 163 const std::string& searchable_form_encoding() const { | 170 const std::string& searchable_form_encoding() const { |
| 164 return searchable_form_encoding_; | 171 return searchable_form_encoding_; |
| 165 } | 172 } |
| 166 void set_searchable_form_encoding(const std::string& encoding) { | 173 void set_searchable_form_encoding(const std::string& encoding) { |
| 167 searchable_form_encoding_ = encoding; | 174 searchable_form_encoding_ = encoding; |
| 168 } | 175 } |
| 169 | 176 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 base::Time commit_load_time_; | 238 base::Time commit_load_time_; |
| 232 base::Time finish_document_load_time_; | 239 base::Time finish_document_load_time_; |
| 233 base::Time finish_load_time_; | 240 base::Time finish_load_time_; |
| 234 base::Time first_paint_time_; | 241 base::Time first_paint_time_; |
| 235 base::Time first_paint_after_load_time_; | 242 base::Time first_paint_after_load_time_; |
| 236 bool load_histograms_recorded_; | 243 bool load_histograms_recorded_; |
| 237 bool web_timing_histograms_recorded_; | 244 bool web_timing_histograms_recorded_; |
| 238 int http_status_code_; | 245 int http_status_code_; |
| 239 bool was_fetched_via_spdy_; | 246 bool was_fetched_via_spdy_; |
| 240 bool was_npn_negotiated_; | 247 bool was_npn_negotiated_; |
| 248 std::string npn_negotiated_protocol_; |
| 241 bool was_alternate_protocol_available_; | 249 bool was_alternate_protocol_available_; |
| 242 bool was_fetched_via_proxy_; | 250 bool was_fetched_via_proxy_; |
| 243 | 251 |
| 244 GURL searchable_form_url_; | 252 GURL searchable_form_url_; |
| 245 std::string searchable_form_encoding_; | 253 std::string searchable_form_encoding_; |
| 246 scoped_ptr<webkit::forms::PasswordForm> password_form_data_; | 254 scoped_ptr<webkit::forms::PasswordForm> password_form_data_; |
| 247 std::string security_info_; | 255 std::string security_info_; |
| 248 | 256 |
| 249 bool use_error_page_; | 257 bool use_error_page_; |
| 250 | 258 |
| 251 // A prefetcher is a page that contains link rel=prefetch elements. | 259 // A prefetcher is a page that contains link rel=prefetch elements. |
| 252 bool was_prefetcher_; | 260 bool was_prefetcher_; |
| 253 bool was_referred_by_prefetcher_; | 261 bool was_referred_by_prefetcher_; |
| 254 | 262 |
| 255 LoadType load_type_; | 263 LoadType load_type_; |
| 256 | 264 |
| 257 bool cache_policy_override_set_; | 265 bool cache_policy_override_set_; |
| 258 WebKit::WebURLRequest::CachePolicy cache_policy_override_; | 266 WebKit::WebURLRequest::CachePolicy cache_policy_override_; |
| 259 | 267 |
| 260 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; | 268 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; |
| 261 | 269 |
| 262 scoped_ptr<NavigationState> navigation_state_; | 270 scoped_ptr<NavigationState> navigation_state_; |
| 263 }; | 271 }; |
| 264 | 272 |
| 265 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 273 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
| 266 | 274 |
| 267 } // namespace content | 275 } // namespace content |
| OLD | NEW |