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

Side by Side Diff: components/password_manager/content/browser/content_password_manager_driver.h

Issue 208453002: Add "previewing on hover" support for password field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update code as per further review comments. Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_DRI VER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "components/password_manager/core/browser/password_autofill_manager.h" 10 #include "components/password_manager/core/browser/password_autofill_manager.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // PasswordManagerDriver implementation. 36 // PasswordManagerDriver implementation.
37 virtual void FillPasswordForm(const autofill::PasswordFormFillData& form_data) 37 virtual void FillPasswordForm(const autofill::PasswordFormFillData& form_data)
38 OVERRIDE; 38 OVERRIDE;
39 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; 39 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE;
40 virtual bool IsOffTheRecord() OVERRIDE; 40 virtual bool IsOffTheRecord() OVERRIDE;
41 virtual void AllowPasswordGenerationForForm(autofill::PasswordForm* form) 41 virtual void AllowPasswordGenerationForForm(autofill::PasswordForm* form)
42 OVERRIDE; 42 OVERRIDE;
43 virtual void AccountCreationFormsFound( 43 virtual void AccountCreationFormsFound(
44 const std::vector<autofill::FormData>& forms) OVERRIDE; 44 const std::vector<autofill::FormData>& forms) OVERRIDE;
45 virtual void AcceptPasswordAutofillSuggestion( 45 virtual void FillSuggestion(const base::string16& username,
46 const base::string16& username, 46 const base::string16& password) OVERRIDE;
47 const base::string16& password) OVERRIDE; 47 virtual void PreviewSuggestion(const base::string16& username,
48 const base::string16& password) OVERRIDE;
49 virtual void ClearPreviewedForm() OVERRIDE;
48 50
49 virtual PasswordGenerationManager* GetPasswordGenerationManager() OVERRIDE; 51 virtual PasswordGenerationManager* GetPasswordGenerationManager() OVERRIDE;
50 virtual PasswordManager* GetPasswordManager() OVERRIDE; 52 virtual PasswordManager* GetPasswordManager() OVERRIDE;
51 virtual autofill::AutofillManager* GetAutofillManager() OVERRIDE; 53 virtual autofill::AutofillManager* GetAutofillManager() OVERRIDE;
52 virtual PasswordAutofillManager* GetPasswordAutofillManager() OVERRIDE; 54 virtual PasswordAutofillManager* GetPasswordAutofillManager() OVERRIDE;
53 55
54 // content::WebContentsObserver overrides. 56 // content::WebContentsObserver overrides.
55 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 57 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
56 virtual void DidNavigateMainFrame( 58 virtual void DidNavigateMainFrame(
57 const content::LoadCommittedDetails& details, 59 const content::LoadCommittedDetails& details,
58 const content::FrameNavigateParams& params) OVERRIDE; 60 const content::FrameNavigateParams& params) OVERRIDE;
59 61
60 private: 62 private:
61 PasswordManager password_manager_; 63 PasswordManager password_manager_;
62 PasswordGenerationManager password_generation_manager_; 64 PasswordGenerationManager password_generation_manager_;
63 PasswordAutofillManager password_autofill_manager_; 65 PasswordAutofillManager password_autofill_manager_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); 67 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver);
66 }; 68 };
67 69
68 } // namespace password_manager 70 } // namespace password_manager
69 71
70 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_ 72 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698