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

Unified Diff: chrome/common/password_form_fill_data.h

Issue 12543010: Establish components/autofill and move some files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/form_field_data_predictions.cc ('k') | chrome/common/password_form_fill_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/password_form_fill_data.h
diff --git a/chrome/common/password_form_fill_data.h b/chrome/common/password_form_fill_data.h
deleted file mode 100644
index 00850a991782e884a351720cabdd342c888f18c7..0000000000000000000000000000000000000000
--- a/chrome/common/password_form_fill_data.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_PASSWORD_FORM_FILL_DATA_H_
-#define CHROME_COMMON_PASSWORD_FORM_FILL_DATA_H_
-
-#include <map>
-
-#include "base/memory/scoped_ptr.h"
-#include "chrome/common/form_data.h"
-#include "content/public/common/password_form.h"
-
-// Structure used for autofilling password forms.
-// basic_data identifies the HTML form on the page and preferred username/
-// password for login, while
-// additional_logins is a list of other matching user/pass pairs for the form.
-// wait_for_username tells us whether we need to wait for the user to enter
-// a valid username before we autofill the password. By default, this is off
-// unless the PasswordManager determined there is an additional risk
-// associated with this form. This can happen, for example, if action URI's
-// of the observed form and our saved representation don't match up.
-struct PasswordFormFillData {
- typedef std::map<string16, string16> LoginCollection;
-
- FormData basic_data;
- LoginCollection additional_logins;
- bool wait_for_username;
- PasswordFormFillData();
- ~PasswordFormFillData();
-};
-
-// Create a FillData structure in preparation for autofilling a form,
-// from basic_data identifying which form to fill, and a collection of
-// matching stored logins to use as username/password values.
-// preferred_match should equal (address) one of matches.
-// wait_for_username_before_autofill is true if we should not autofill
-// anything until the user typed in a valid username and blurred the field.
-void InitPasswordFormFillData(
- const content::PasswordForm& form_on_page,
- const content::PasswordFormMap& matches,
- const content::PasswordForm* const preferred_match,
- bool wait_for_username_before_autofill,
- PasswordFormFillData* result);
-
-#endif // CHROME_COMMON_PASSWORD_FORM_FILL_DATA_H__
« no previous file with comments | « chrome/common/form_field_data_predictions.cc ('k') | chrome/common/password_form_fill_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698