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

Side by Side Diff: chrome/browser/autofill/password_autofill_manager.h

Issue 10230005: New Autofill UI uses ID for password (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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
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 CHROME_BROWSER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 // This file was contains some repeated code from 9 // This file was contains some repeated code from
10 // chrome/renderer/autofill/password_autofill_manager because as we move to the 10 // chrome/renderer/autofill/password_autofill_manager because as we move to the
(...skipping 14 matching lines...) Expand all
25 class PasswordAutofillManager { 25 class PasswordAutofillManager {
26 public: 26 public:
27 explicit PasswordAutofillManager(content::WebContents* web_contents); 27 explicit PasswordAutofillManager(content::WebContents* web_contents);
28 virtual ~PasswordAutofillManager(); 28 virtual ~PasswordAutofillManager();
29 29
30 // Fills the password associated with user name |value|. Returns true if the 30 // Fills the password associated with user name |value|. Returns true if the
31 // username and password fields were filled, false otherwise. 31 // username and password fields were filled, false otherwise.
32 bool DidAcceptAutofillSuggestion(const webkit::forms::FormField& field, 32 bool DidAcceptAutofillSuggestion(const webkit::forms::FormField& field,
33 const string16& value); 33 const string16& value);
34 34
35 // A no-op. No filling happens for selection. But this method returns
36 // true when |node| is fillable by password Autofill.
37 bool DidSelectAutofillSuggestion(const webkit::forms::FormField& field);
38
39 // A no-op. Password forms are not previewed, so they do not need to be
40 // cleared when the selection changes. However, this method returns
41 // true when |node| is fillable by password Autofill.
42 bool DidClearAutofillSelection(const webkit::forms::FormField& field);
43
44 // Invoked when a password mapping is added. 35 // Invoked when a password mapping is added.
45 void AddPasswordFormMapping( 36 void AddPasswordFormMapping(
46 const webkit::forms::FormField& username_element, 37 const webkit::forms::FormField& username_element,
47 const webkit::forms::PasswordFormFillData& password); 38 const webkit::forms::PasswordFormFillData& password);
48 39
49 // Invoked to clear any page specific cached values. 40 // Invoked to clear any page specific cached values.
50 void Reset(); 41 void Reset();
51 42
52 private: 43 private:
53 // TODO(csharp): Modify the AutofillExternalDeletegate code so that it can 44 // TODO(csharp): Modify the AutofillExternalDeletegate code so that it can
(...skipping 18 matching lines...) Expand all
72 63
73 // We only need the RenderViewHost pointer in WebContents, but if we attempt 64 // We only need the RenderViewHost pointer in WebContents, but if we attempt
74 // to just store RenderViewHost on creation, it becomes invalid once we start 65 // to just store RenderViewHost on creation, it becomes invalid once we start
75 // using it. By having the WebContents we can always get a valid pointer. 66 // using it. By having the WebContents we can always get a valid pointer.
76 content::WebContents* web_contents_; // Weak reference. 67 content::WebContents* web_contents_; // Weak reference.
77 68
78 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); 69 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager);
79 }; 70 };
80 71
81 #endif // CHROME_BROWSER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_ 72 #endif // CHROME_BROWSER_AUTOFILL_PASSWORD_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_external_delegate.cc ('k') | chrome/browser/autofill/password_autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698