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

Side by Side Diff: components/password_manager/core/browser/password_autofill_manager.h

Issue 492043003: Fill on account select in the password manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unit tests Created 6 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/i18n/rtl.h" 11 #include "base/i18n/rtl.h"
12 #include "components/autofill/core/browser/autofill_client.h" 12 #include "components/autofill/core/browser/autofill_client.h"
13 #include "components/autofill/core/browser/autofill_popup_delegate.h" 13 #include "components/autofill/core/browser/autofill_popup_delegate.h"
14 #include "components/autofill/core/common/autofill_constants.h"
14 #include "components/autofill/core/common/password_form_fill_data.h" 15 #include "components/autofill/core/common/password_form_fill_data.h"
15 16
16 namespace gfx { 17 namespace gfx {
17 class RectF; 18 class RectF;
18 } 19 }
19 20
20 namespace password_manager { 21 namespace password_manager {
21 22
22 class PasswordManagerClient; 23 class PasswordManagerClient;
23 24
(...skipping 14 matching lines...) Expand all
38 void RemoveSuggestion(const base::string16& value, int identifier) override; 39 void RemoveSuggestion(const base::string16& value, int identifier) override;
39 void ClearPreviewedForm() override; 40 void ClearPreviewedForm() override;
40 41
41 // Invoked when a password mapping is added. 42 // Invoked when a password mapping is added.
42 void OnAddPasswordFormMapping( 43 void OnAddPasswordFormMapping(
43 int key, 44 int key,
44 const autofill::PasswordFormFillData& fill_data); 45 const autofill::PasswordFormFillData& fill_data);
45 46
46 // Handles a request from the renderer to show a popup with the given 47 // Handles a request from the renderer to show a popup with the given
47 // |suggestions| from the password manager. 48 // |suggestions| from the password manager.
49 void ShowPasswordSuggestions(int key,
50 base::i18n::TextDirection text_direction,
51 const base::string16& typed_username,
52 const base::string16& title,
53 bool show_all,
54 const gfx::RectF& bounds);
55
56 // |options| should be a bitwise mask of
57 // autofill::ShowPasswordSuggestionsOptions values.
48 void OnShowPasswordSuggestions(int key, 58 void OnShowPasswordSuggestions(int key,
49 base::i18n::TextDirection text_direction, 59 base::i18n::TextDirection text_direction,
50 const base::string16& typed_username, 60 const base::string16& typed_username,
51 bool show_all, 61 int options,
52 const gfx::RectF& bounds); 62 const gfx::RectF& bounds);
53 63
54 // Invoked to clear any page specific cached values. 64 // Invoked to clear any page specific cached values.
55 void Reset(); 65 void Reset();
56 66
57 // A public version of FillSuggestion(), only for use in tests. 67 // A public version of FillSuggestion(), only for use in tests.
58 bool FillSuggestionForTest(int key, const base::string16& username); 68 bool FillSuggestionForTest(int key, const base::string16& username);
59 69
60 // A public version of PreviewSuggestion(), only for use in tests. 70 // A public version of PreviewSuggestion(), only for use in tests.
61 bool PreviewSuggestionForTest(int key, const base::string16& username); 71 bool PreviewSuggestionForTest(int key, const base::string16& username);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 autofill::AutofillClient* const autofill_client_; // weak 105 autofill::AutofillClient* const autofill_client_; // weak
96 106
97 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_; 107 base::WeakPtrFactory<PasswordAutofillManager> weak_ptr_factory_;
98 108
99 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager); 109 DISALLOW_COPY_AND_ASSIGN(PasswordAutofillManager);
100 }; 110 };
101 111
102 } // namespace password_manager 112 } // namespace password_manager
103 113
104 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_ 114 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_AUTOFILL_MANAGER_H_
OLDNEW
« no previous file with comments | « components/password_manager/DEPS ('k') | components/password_manager/core/browser/password_autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698