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

Side by Side Diff: chrome/browser/ui/autofill/tab_autofill_manager_delegate.h

Issue 23432002: Generate passwords only for forms that autofill server marks as account creation forms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix password generation manager browser test. Created 7 years, 3 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_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const std::vector<string16>& labels, 57 const std::vector<string16>& labels,
58 const std::vector<string16>& icons, 58 const std::vector<string16>& icons,
59 const std::vector<int>& identifiers, 59 const std::vector<int>& identifiers,
60 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE; 60 base::WeakPtr<AutofillPopupDelegate> delegate) OVERRIDE;
61 virtual void UpdateAutofillPopupDataListValues( 61 virtual void UpdateAutofillPopupDataListValues(
62 const std::vector<base::string16>& values, 62 const std::vector<base::string16>& values,
63 const std::vector<base::string16>& labels) OVERRIDE; 63 const std::vector<base::string16>& labels) OVERRIDE;
64 virtual void HideAutofillPopup() OVERRIDE; 64 virtual void HideAutofillPopup() OVERRIDE;
65 virtual bool IsAutocompleteEnabled() OVERRIDE; 65 virtual bool IsAutocompleteEnabled() OVERRIDE;
66 66
67 virtual void DetectAccountCreationForms(
68 const std::vector<autofill::FormStructure*>& forms) OVERRIDE;
69
67 // content::WebContentsObserver implementation. 70 // content::WebContentsObserver implementation.
68 virtual void DidNavigateMainFrame( 71 virtual void DidNavigateMainFrame(
69 const content::LoadCommittedDetails& details, 72 const content::LoadCommittedDetails& details,
70 const content::FrameNavigateParams& params) OVERRIDE; 73 const content::FrameNavigateParams& params) OVERRIDE;
71 virtual void WebContentsDestroyed( 74 virtual void WebContentsDestroyed(
72 content::WebContents* web_contents) OVERRIDE; 75 content::WebContents* web_contents) OVERRIDE;
73 virtual void WasShown() OVERRIDE; 76 virtual void WasShown() OVERRIDE;
74 77
75 // Exposed for testing. 78 // Exposed for testing.
76 AutofillDialogController* GetDialogControllerForTesting() { 79 AutofillDialogController* GetDialogControllerForTesting() {
77 return dialog_controller_.get(); 80 return dialog_controller_.get();
78 } 81 }
79 82
80 private: 83 private:
81 explicit TabAutofillManagerDelegate(content::WebContents* web_contents); 84 explicit TabAutofillManagerDelegate(content::WebContents* web_contents);
82 friend class content::WebContentsUserData<TabAutofillManagerDelegate>; 85 friend class content::WebContentsUserData<TabAutofillManagerDelegate>;
83 86
84 content::WebContents* const web_contents_; 87 content::WebContents* const web_contents_;
85 base::WeakPtr<AutofillDialogController> dialog_controller_; 88 base::WeakPtr<AutofillDialogController> dialog_controller_;
86 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_; 89 base::WeakPtr<AutofillPopupControllerImpl> popup_controller_;
87 90
88 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate); 91 DISALLOW_COPY_AND_ASSIGN(TabAutofillManagerDelegate);
89 }; 92 };
90 93
91 } // namespace autofill 94 } // namespace autofill
92 95
93 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_ 96 #endif // CHROME_BROWSER_UI_AUTOFILL_TAB_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698