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

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: Improve rebased code. 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 27 matching lines...) Expand all
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 AcceptPasswordAutofillSuggestion(
46 const base::string16& username, 46 const base::string16& username,
47 const base::string16& password) OVERRIDE; 47 const base::string16& password) OVERRIDE;
48 virtual void PreviewPasswordAutofillSuggestion(
49 const base::string16& username,
50 const base::string16& password) OVERRIDE;
51 virtual void ClearPasswordPreviewedForm() OVERRIDE;
48 52
49 virtual PasswordGenerationManager* GetPasswordGenerationManager() OVERRIDE; 53 virtual PasswordGenerationManager* GetPasswordGenerationManager() OVERRIDE;
50 virtual PasswordManager* GetPasswordManager() OVERRIDE; 54 virtual PasswordManager* GetPasswordManager() OVERRIDE;
51 virtual autofill::AutofillManager* GetAutofillManager() OVERRIDE; 55 virtual autofill::AutofillManager* GetAutofillManager() OVERRIDE;
52 virtual PasswordAutofillManager* GetPasswordAutofillManager() OVERRIDE; 56 virtual PasswordAutofillManager* GetPasswordAutofillManager() OVERRIDE;
53 57
54 // content::WebContentsObserver overrides. 58 // content::WebContentsObserver overrides.
55 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 59 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
56 virtual void DidNavigateMainFrame( 60 virtual void DidNavigateMainFrame(
57 const content::LoadCommittedDetails& details, 61 const content::LoadCommittedDetails& details,
58 const content::FrameNavigateParams& params) OVERRIDE; 62 const content::FrameNavigateParams& params) OVERRIDE;
59 63
60 private: 64 private:
61 PasswordManager password_manager_; 65 PasswordManager password_manager_;
62 PasswordGenerationManager password_generation_manager_; 66 PasswordGenerationManager password_generation_manager_;
63 PasswordAutofillManager password_autofill_manager_; 67 PasswordAutofillManager password_autofill_manager_;
64 68
65 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); 69 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver);
66 }; 70 };
67 71
68 } // namespace password_manager 72 } // namespace password_manager
69 73
70 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_ 74 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_ DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698