OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 class ContentPasswordManagerDriver : public PasswordManagerDriver, | 27 class ContentPasswordManagerDriver : public PasswordManagerDriver, |
28 public content::WebContentsObserver { | 28 public content::WebContentsObserver { |
29 public: | 29 public: |
30 ContentPasswordManagerDriver(content::WebContents* web_contents, | 30 ContentPasswordManagerDriver(content::WebContents* web_contents, |
31 PasswordManagerClient* client, | 31 PasswordManagerClient* client, |
32 autofill::AutofillClient* autofill_client); | 32 autofill::AutofillClient* autofill_client); |
33 virtual ~ContentPasswordManagerDriver(); | 33 virtual ~ContentPasswordManagerDriver(); |
34 | 34 |
35 // PasswordManagerDriver implementation. | 35 // PasswordManagerDriver implementation. |
36 virtual void FillPasswordForm(const autofill::PasswordFormFillData& form_data) | 36 virtual void FillPasswordForm(const autofill::PasswordFormFillData& form_data) |
37 OVERRIDE; | 37 override; |
38 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; | 38 virtual bool DidLastPageLoadEncounterSSLErrors() override; |
39 virtual bool IsOffTheRecord() OVERRIDE; | 39 virtual bool IsOffTheRecord() override; |
40 virtual void AllowPasswordGenerationForForm( | 40 virtual void AllowPasswordGenerationForForm( |
41 const autofill::PasswordForm& form) OVERRIDE; | 41 const autofill::PasswordForm& form) override; |
42 virtual void AccountCreationFormsFound( | 42 virtual void AccountCreationFormsFound( |
43 const std::vector<autofill::FormData>& forms) OVERRIDE; | 43 const std::vector<autofill::FormData>& forms) override; |
44 virtual void FillSuggestion(const base::string16& username, | 44 virtual void FillSuggestion(const base::string16& username, |
45 const base::string16& password) OVERRIDE; | 45 const base::string16& password) override; |
46 virtual void PreviewSuggestion(const base::string16& username, | 46 virtual void PreviewSuggestion(const base::string16& username, |
47 const base::string16& password) OVERRIDE; | 47 const base::string16& password) override; |
48 virtual void ClearPreviewedForm() OVERRIDE; | 48 virtual void ClearPreviewedForm() override; |
49 | 49 |
50 virtual PasswordGenerationManager* GetPasswordGenerationManager() OVERRIDE; | 50 virtual PasswordGenerationManager* GetPasswordGenerationManager() override; |
51 virtual PasswordManager* GetPasswordManager() OVERRIDE; | 51 virtual PasswordManager* GetPasswordManager() override; |
52 virtual autofill::AutofillManager* GetAutofillManager() OVERRIDE; | 52 virtual autofill::AutofillManager* GetAutofillManager() override; |
53 virtual PasswordAutofillManager* GetPasswordAutofillManager() OVERRIDE; | 53 virtual PasswordAutofillManager* GetPasswordAutofillManager() override; |
54 | 54 |
55 // content::WebContentsObserver overrides. | 55 // content::WebContentsObserver overrides. |
56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 56 virtual bool OnMessageReceived(const IPC::Message& message) override; |
57 virtual void DidNavigateMainFrame( | 57 virtual void DidNavigateMainFrame( |
58 const content::LoadCommittedDetails& details, | 58 const content::LoadCommittedDetails& details, |
59 const content::FrameNavigateParams& params) OVERRIDE; | 59 const content::FrameNavigateParams& params) override; |
60 | 60 |
61 private: | 61 private: |
62 PasswordManager password_manager_; | 62 PasswordManager password_manager_; |
63 PasswordGenerationManager password_generation_manager_; | 63 PasswordGenerationManager password_generation_manager_; |
64 PasswordAutofillManager password_autofill_manager_; | 64 PasswordAutofillManager password_autofill_manager_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); | 66 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace password_manager | 69 } // namespace password_manager |
70 | 70 |
71 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ | 71 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ |
OLD | NEW |