| 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 | 7 |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "chrome/common/page_transition_types.h" | 10 #include "chrome/common/page_transition_types.h" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 alt_error_page_fetcher_.reset(f); | 137 alt_error_page_fetcher_.reset(f); |
| 138 } | 138 } |
| 139 | 139 |
| 140 const std::string& security_info() const { | 140 const std::string& security_info() const { |
| 141 return security_info_; | 141 return security_info_; |
| 142 } | 142 } |
| 143 void set_security_info(const std::string& security_info) { | 143 void set_security_info(const std::string& security_info) { |
| 144 security_info_ = security_info; | 144 security_info_ = security_info; |
| 145 } | 145 } |
| 146 | 146 |
| 147 bool postpone_loading_data() const { |
| 148 return postpone_loading_data_; |
| 149 } |
| 150 void set_postpone_loading_data(bool postpone_loading_data) { |
| 151 postpone_loading_data_ = postpone_loading_data; |
| 152 } |
| 153 |
| 154 void clear_postponed_data() { |
| 155 postponed_data_.clear(); |
| 156 } |
| 157 void append_postponed_data(const char* data, size_t data_len) { |
| 158 postponed_data_.append(data, data_len); |
| 159 } |
| 160 const std::string& postponed_data() const { |
| 161 return postponed_data_; |
| 162 } |
| 163 |
| 147 private: | 164 private: |
| 148 NavigationState(PageTransition::Type transition_type, | 165 NavigationState(PageTransition::Type transition_type, |
| 149 const base::Time& request_time, | 166 const base::Time& request_time, |
| 150 bool is_content_initiated, | 167 bool is_content_initiated, |
| 151 int32 pending_page_id) | 168 int32 pending_page_id) |
| 152 : transition_type_(transition_type), | 169 : transition_type_(transition_type), |
| 153 request_time_(request_time), | 170 request_time_(request_time), |
| 154 load_histograms_recorded_(false), | 171 load_histograms_recorded_(false), |
| 155 request_committed_(false), | 172 request_committed_(false), |
| 156 is_content_initiated_(is_content_initiated), | 173 is_content_initiated_(is_content_initiated), |
| 157 pending_page_id_(pending_page_id) { | 174 pending_page_id_(pending_page_id), |
| 175 postpone_loading_data_(false) { |
| 158 } | 176 } |
| 159 | 177 |
| 160 PageTransition::Type transition_type_; | 178 PageTransition::Type transition_type_; |
| 161 base::Time request_time_; | 179 base::Time request_time_; |
| 162 base::Time start_load_time_; | 180 base::Time start_load_time_; |
| 163 base::Time commit_load_time_; | 181 base::Time commit_load_time_; |
| 164 base::Time finish_document_load_time_; | 182 base::Time finish_document_load_time_; |
| 165 base::Time finish_load_time_; | 183 base::Time finish_load_time_; |
| 166 base::Time first_paint_time_; | 184 base::Time first_paint_time_; |
| 167 base::Time first_paint_after_load_time_; | 185 base::Time first_paint_after_load_time_; |
| 168 bool load_histograms_recorded_; | 186 bool load_histograms_recorded_; |
| 169 bool request_committed_; | 187 bool request_committed_; |
| 170 bool is_content_initiated_; | 188 bool is_content_initiated_; |
| 171 int32 pending_page_id_; | 189 int32 pending_page_id_; |
| 172 scoped_ptr<webkit_glue::SearchableFormData> searchable_form_data_; | 190 scoped_ptr<webkit_glue::SearchableFormData> searchable_form_data_; |
| 173 scoped_ptr<webkit_glue::PasswordForm> password_form_data_; | 191 scoped_ptr<webkit_glue::PasswordForm> password_form_data_; |
| 174 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; | 192 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; |
| 175 std::string security_info_; | 193 std::string security_info_; |
| 194 bool postpone_loading_data_; |
| 195 std::string postponed_data_; |
| 176 | 196 |
| 177 DISALLOW_COPY_AND_ASSIGN(NavigationState); | 197 DISALLOW_COPY_AND_ASSIGN(NavigationState); |
| 178 }; | 198 }; |
| 179 | 199 |
| 180 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_ | 200 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_ |
| OLD | NEW |