Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_NAVIGATION_STATE_H_ | 5 #ifndef CHROME_RENDERER_NAVIGATION_STATE_H_ |
| 6 #define CHROME_RENDERER_NAVIGATION_STATE_H_ | 6 #define CHROME_RENDERER_NAVIGATION_STATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 203 webkit_glue::AltErrorPageResourceFetcher* alt_error_page_fetcher() const { | 203 webkit_glue::AltErrorPageResourceFetcher* alt_error_page_fetcher() const { |
| 204 return alt_error_page_fetcher_.get(); | 204 return alt_error_page_fetcher_.get(); |
| 205 } | 205 } |
| 206 void set_alt_error_page_fetcher(webkit_glue::AltErrorPageResourceFetcher* f); | 206 void set_alt_error_page_fetcher(webkit_glue::AltErrorPageResourceFetcher* f); |
| 207 | 207 |
| 208 const std::string& security_info() const { return security_info_; } | 208 const std::string& security_info() const { return security_info_; } |
| 209 void set_security_info(const std::string& security_info) { | 209 void set_security_info(const std::string& security_info) { |
| 210 security_info_ = security_info; | 210 security_info_ = security_info; |
| 211 } | 211 } |
| 212 | 212 |
| 213 bool postpone_loading_data() const { return postpone_loading_data_; } | 213 const bool maybe_use_error_page() const { return maybe_use_error_page_; } |
|
tony
2011/02/23 21:43:20
Nit: Drop the const in front of the bool. Also, I
mmenke
2011/02/23 21:53:36
Both done.
| |
| 214 void set_postpone_loading_data(bool postpone_loading_data) { | 214 void set_maybe_use_error_page(bool maybe_use_error_page) { |
| 215 postpone_loading_data_ = postpone_loading_data; | 215 maybe_use_error_page_ = maybe_use_error_page; |
| 216 } | |
| 217 | |
| 218 const std::string& postponed_data() const { return postponed_data_; } | |
| 219 void clear_postponed_data() { postponed_data_.clear(); } | |
| 220 void append_postponed_data(const char* data, size_t data_len) { | |
| 221 postponed_data_.append(data, data_len); | |
| 222 } | 216 } |
| 223 | 217 |
| 224 bool is_prerendering() const; | 218 bool is_prerendering() const; |
| 225 void set_is_prerendering(bool is_prerendering); | 219 void set_is_prerendering(bool is_prerendering); |
| 226 | 220 |
| 227 bool was_started_as_prerender() const; | 221 bool was_started_as_prerender() const; |
| 228 void set_was_started_as_prerender(bool was_started_as_prerender); | 222 void set_was_started_as_prerender(bool was_started_as_prerender); |
| 229 | 223 |
| 230 int http_status_code() const { return http_status_code_; } | 224 int http_status_code() const { return http_status_code_; } |
| 231 void set_http_status_code(int http_status_code) { | 225 void set_http_status_code(int http_status_code) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 309 bool web_timing_histograms_recorded_; | 303 bool web_timing_histograms_recorded_; |
| 310 bool request_committed_; | 304 bool request_committed_; |
| 311 bool is_content_initiated_; | 305 bool is_content_initiated_; |
| 312 int32 pending_page_id_; | 306 int32 pending_page_id_; |
| 313 int pending_history_list_offset_; | 307 int pending_history_list_offset_; |
| 314 GURL searchable_form_url_; | 308 GURL searchable_form_url_; |
| 315 std::string searchable_form_encoding_; | 309 std::string searchable_form_encoding_; |
| 316 scoped_ptr<webkit_glue::PasswordForm> password_form_data_; | 310 scoped_ptr<webkit_glue::PasswordForm> password_form_data_; |
| 317 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; | 311 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; |
| 318 std::string security_info_; | 312 std::string security_info_; |
| 319 bool postpone_loading_data_; | 313 |
| 320 std::string postponed_data_; | 314 // True if we should use an error page, if the http status code indicates an |
| 315 // error. | |
| 316 bool maybe_use_error_page_; | |
| 321 | 317 |
| 322 // True if page is being prerendered. False once prerendered page is | 318 // True if page is being prerendered. False once prerendered page is |
| 323 // displayed. Preserved across redirects. Only set for the main frame's | 319 // displayed. Preserved across redirects. Only set for the main frame's |
| 324 // data source. | 320 // data source. |
| 325 bool is_prerendering_; | 321 bool is_prerendering_; |
| 326 | 322 |
| 327 // True if a page load started as a prerender. Preserved across redirects. | 323 // True if a page load started as a prerender. Preserved across redirects. |
| 328 bool was_started_as_prerender_; | 324 bool was_started_as_prerender_; |
| 329 | 325 |
| 330 bool cache_policy_override_set_; | 326 bool cache_policy_override_set_; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 341 bool was_within_same_page_; | 337 bool was_within_same_page_; |
| 342 | 338 |
| 343 // A prefetcher is a page that contains link rel=prefetch elements. | 339 // A prefetcher is a page that contains link rel=prefetch elements. |
| 344 bool was_prefetcher_; | 340 bool was_prefetcher_; |
| 345 bool was_referred_by_prefetcher_; | 341 bool was_referred_by_prefetcher_; |
| 346 | 342 |
| 347 DISALLOW_COPY_AND_ASSIGN(NavigationState); | 343 DISALLOW_COPY_AND_ASSIGN(NavigationState); |
| 348 }; | 344 }; |
| 349 | 345 |
| 350 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_ | 346 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_ |
| OLD | NEW |