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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 searchable_form_data_.reset(data); | 125 searchable_form_data_.reset(data); |
126 } | 126 } |
127 | 127 |
128 webkit_glue::PasswordForm* password_form_data() const { | 128 webkit_glue::PasswordForm* password_form_data() const { |
129 return password_form_data_.get(); | 129 return password_form_data_.get(); |
130 } | 130 } |
131 void set_password_form_data(webkit_glue::PasswordForm* data) { | 131 void set_password_form_data(webkit_glue::PasswordForm* data) { |
132 password_form_data_.reset(data); | 132 password_form_data_.reset(data); |
133 } | 133 } |
134 | 134 |
| 135 const std::string& security_info() const { |
| 136 return security_info_; |
| 137 } |
| 138 void set_security_info(const std::string& security_info) { |
| 139 security_info_ = security_info; |
| 140 } |
| 141 |
135 private: | 142 private: |
136 NavigationState(PageTransition::Type transition_type, | 143 NavigationState(PageTransition::Type transition_type, |
137 const base::Time& request_time, | 144 const base::Time& request_time, |
138 bool is_content_initiated, | 145 bool is_content_initiated, |
139 int32 pending_page_id) | 146 int32 pending_page_id) |
140 : transition_type_(transition_type), | 147 : transition_type_(transition_type), |
141 request_time_(request_time), | 148 request_time_(request_time), |
142 load_histograms_recorded_(false), | 149 load_histograms_recorded_(false), |
143 request_committed_(false), | 150 request_committed_(false), |
144 is_content_initiated_(is_content_initiated), | 151 is_content_initiated_(is_content_initiated), |
145 pending_page_id_(pending_page_id) { | 152 pending_page_id_(pending_page_id) { |
146 } | 153 } |
147 | 154 |
148 PageTransition::Type transition_type_; | 155 PageTransition::Type transition_type_; |
149 base::Time request_time_; | 156 base::Time request_time_; |
150 base::Time start_load_time_; | 157 base::Time start_load_time_; |
151 base::Time commit_load_time_; | 158 base::Time commit_load_time_; |
152 base::Time finish_document_load_time_; | 159 base::Time finish_document_load_time_; |
153 base::Time finish_load_time_; | 160 base::Time finish_load_time_; |
154 base::Time first_paint_time_; | 161 base::Time first_paint_time_; |
155 base::Time first_paint_after_load_time_; | 162 base::Time first_paint_after_load_time_; |
156 bool load_histograms_recorded_; | 163 bool load_histograms_recorded_; |
157 bool request_committed_; | 164 bool request_committed_; |
158 bool is_content_initiated_; | 165 bool is_content_initiated_; |
159 int32 pending_page_id_; | 166 int32 pending_page_id_; |
160 scoped_ptr<webkit_glue::SearchableFormData> searchable_form_data_; | 167 scoped_ptr<webkit_glue::SearchableFormData> searchable_form_data_; |
161 scoped_ptr<webkit_glue::PasswordForm> password_form_data_; | 168 scoped_ptr<webkit_glue::PasswordForm> password_form_data_; |
| 169 std::string security_info_; |
162 | 170 |
163 DISALLOW_COPY_AND_ASSIGN(NavigationState); | 171 DISALLOW_COPY_AND_ASSIGN(NavigationState); |
164 }; | 172 }; |
165 | 173 |
166 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_ | 174 #endif // CHROME_RENDERER_NAVIGATION_STATE_H_ |
OLD | NEW |