Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: content/public/renderer/document_state.h

Issue 12713007: Fix the no password save issue for ajax login (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Again Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
174 // navigations). This information is used by the PasswordManager to determine
175 // if the user should be prompted to save their password.
176 //
177 // Note that setting this field doesn't affect where the data is sent or what
178 // origin we associate it with, only whether we prompt the user to save it.
179 // That is, a false positive is a usability issue (e.g. may try to save a
180 // mis-typed password) not a security issue.
172 PasswordForm* password_form_data() const { 181 PasswordForm* password_form_data() const {
173 return password_form_data_.get(); 182 return password_form_data_.get();
174 } 183 }
175 void set_password_form_data(scoped_ptr<PasswordForm> data); 184 void set_password_form_data(scoped_ptr<PasswordForm> data);
176 185
177 const std::string& security_info() const { return security_info_; } 186 const std::string& security_info() const { return security_info_; }
178 void set_security_info(const std::string& security_info) { 187 void set_security_info(const std::string& security_info) {
179 security_info_ = security_info; 188 security_info_ = security_info;
180 } 189 }
181 190
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_; 314 scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_;
306 315
307 scoped_ptr<NavigationState> navigation_state_; 316 scoped_ptr<NavigationState> navigation_state_;
308 317
309 bool can_load_local_resources_; 318 bool can_load_local_resources_;
310 }; 319 };
311 320
312 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_ 321 #endif // CONTENT_PUBLIC_RENDERER_DOCUMENT_STATE_H_
313 322
314 } // namespace content 323 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/data/password/password_xhr_submit.html ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698