Chromium Code Reviews| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 162 | 162 |
| 163 const GURL& searchable_form_url() const { return searchable_form_url_; } | 163 const GURL& searchable_form_url() const { return searchable_form_url_; } |
| 164 void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; } | 164 void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; } |
| 165 const std::string& searchable_form_encoding() const { | 165 const std::string& searchable_form_encoding() const { |
| 166 return searchable_form_encoding_; | 166 return searchable_form_encoding_; |
| 167 } | 167 } |
| 168 void set_searchable_form_encoding(const std::string& encoding) { | 168 void set_searchable_form_encoding(const std::string& encoding) { |
| 169 searchable_form_encoding_ = encoding; | 169 searchable_form_encoding_ = encoding; |
| 170 } | 170 } |
| 171 | 171 |
| 172 // If set, contains the PasswordForm that we believe triggered the current | |
| 173 // navigation (there is some ambiguity in the case of javascript initiated | |
|
Charlie Reis
2013/03/23 01:00:26
I really appreciate this comment.
However, it's a
Garrett Casto
2013/03/26 00:00:27
I'm not sure what you mean by sending here. If you
| |
| 174 // navigations). This information is used by the PasswordManager to determine | |
| 175 // if the user should be prompted to save their password. | |
| 172 PasswordForm* password_form_data() const { | 176 PasswordForm* password_form_data() const { |
| 173 return password_form_data_.get(); | 177 return password_form_data_.get(); |
| 174 } | 178 } |
| 175 void set_password_form_data(scoped_ptr<PasswordForm> data); | 179 void set_password_form_data(scoped_ptr<PasswordForm> data); |
| 176 | 180 |
| 177 const std::string& security_info() const { return security_info_; } | 181 const std::string& security_info() const { return security_info_; } |
| 178 void set_security_info(const std::string& security_info) { | 182 void set_security_info(const std::string& security_info) { |
| 179 security_info_ = security_info; | 183 security_info_ = security_info; |
| 180 } | 184 } |
| 181 | 185 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 305 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; | 309 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; |
| 306 | 310 |
| 307 scoped_ptr<NavigationState> navigation_state_; | 311 scoped_ptr<NavigationState> navigation_state_; |
| 308 | 312 |
| 309 bool can_load_local_resources_; | 313 bool can_load_local_resources_; |
| 310 }; | 314 }; |
| 311 | 315 |
| 312 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ | 316 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ |
| 313 | 317 |
| 314 } // namespace content | 318 } // namespace content |
| OLD | NEW |