| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "components/autofill/content/common/autofill_agent.mojom.h" | 13 #include "components/autofill/content/common/autofill_agent.mojom.h" |
| 14 #include "components/autofill/content/common/autofill_driver.mojom.h" | 14 #include "components/autofill/content/common/autofill_driver.mojom.h" |
| 15 #include "components/autofill/core/common/password_form_field_prediction_map.h" | 15 #include "components/autofill/core/common/password_form_field_prediction_map.h" |
| 16 #include "components/autofill/core/common/password_form_generation_data.h" | 16 #include "components/autofill/core/common/password_form_generation_data.h" |
| 17 #include "components/password_manager/core/browser/password_autofill_manager.h" | 17 #include "components/password_manager/core/browser/password_autofill_manager.h" |
| 18 #include "components/password_manager/core/browser/password_generation_manager.h
" | 18 #include "components/password_manager/core/browser/password_generation_manager.h
" |
| 19 #include "components/password_manager/core/browser/password_manager.h" | 19 #include "components/password_manager/core/browser/password_manager.h" |
| 20 #include "components/password_manager/core/browser/password_manager_driver.h" | 20 #include "components/password_manager/core/browser/password_manager_driver.h" |
| 21 #include "mojo/public/cpp/bindings/binding.h" | 21 #include "mojo/public/cpp/bindings/binding.h" |
| 22 #include "mojo/public/cpp/bindings/binding_set.h" | 22 #include "mojo/public/cpp/bindings/binding_set.h" |
| 23 #include "third_party/WebKit/public/platform/modules/sensitive_input_visibility/
sensitive_input_visibility_service.mojom.h" | 23 #include "third_party/WebKit/public/platform/modules/sensitive_input_visibility/
sensitive_input_visibility_service.mojom.h" |
| 24 | 24 |
| 25 namespace autofill { | 25 namespace autofill { |
| 26 struct PasswordForm; | 26 struct PasswordForm; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 struct FrameNavigateParams; | 30 class NavigationHandle; |
| 31 struct LoadCommittedDetails; | |
| 32 class RenderFrameHost; | 31 class RenderFrameHost; |
| 33 } | 32 } |
| 34 | 33 |
| 35 namespace password_manager { | 34 namespace password_manager { |
| 36 enum class BadMessageReason; | 35 enum class BadMessageReason; |
| 37 | 36 |
| 38 // There is one ContentPasswordManagerDriver per RenderFrameHost. | 37 // There is one ContentPasswordManagerDriver per RenderFrameHost. |
| 39 // The lifetime is managed by the ContentPasswordManagerDriverFactory. | 38 // The lifetime is managed by the ContentPasswordManagerDriverFactory. |
| 40 class ContentPasswordManagerDriver | 39 class ContentPasswordManagerDriver |
| 41 : public PasswordManagerDriver, | 40 : public PasswordManagerDriver, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void ClearPreviewedForm() override; | 75 void ClearPreviewedForm() override; |
| 77 void ForceSavePassword() override; | 76 void ForceSavePassword() override; |
| 78 void GeneratePassword() override; | 77 void GeneratePassword() override; |
| 79 void SendLoggingAvailability() override; | 78 void SendLoggingAvailability() override; |
| 80 void AllowToRunFormClassifier() override; | 79 void AllowToRunFormClassifier() override; |
| 81 | 80 |
| 82 PasswordGenerationManager* GetPasswordGenerationManager() override; | 81 PasswordGenerationManager* GetPasswordGenerationManager() override; |
| 83 PasswordManager* GetPasswordManager() override; | 82 PasswordManager* GetPasswordManager() override; |
| 84 PasswordAutofillManager* GetPasswordAutofillManager() override; | 83 PasswordAutofillManager* GetPasswordAutofillManager() override; |
| 85 | 84 |
| 86 void DidNavigateFrame(const content::LoadCommittedDetails& details, | 85 void DidNavigateFrame(content::NavigationHandle* navigation_handle); |
| 87 const content::FrameNavigateParams& params); | |
| 88 | 86 |
| 89 // autofill::mojom::PasswordManagerDriver: | 87 // autofill::mojom::PasswordManagerDriver: |
| 90 void PasswordFormsParsed( | 88 void PasswordFormsParsed( |
| 91 const std::vector<autofill::PasswordForm>& forms) override; | 89 const std::vector<autofill::PasswordForm>& forms) override; |
| 92 void PasswordFormsRendered( | 90 void PasswordFormsRendered( |
| 93 const std::vector<autofill::PasswordForm>& visible_forms, | 91 const std::vector<autofill::PasswordForm>& visible_forms, |
| 94 bool did_stop_loading) override; | 92 bool did_stop_loading) override; |
| 95 void PasswordFormSubmitted( | 93 void PasswordFormSubmitted( |
| 96 const autofill::PasswordForm& password_form) override; | 94 const autofill::PasswordForm& password_form) override; |
| 97 void InPageNavigation(const autofill::PasswordForm& password_form) override; | 95 void InPageNavigation(const autofill::PasswordForm& password_form) override; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 sensitive_input_visibility_bindings_; | 150 sensitive_input_visibility_bindings_; |
| 153 | 151 |
| 154 base::WeakPtrFactory<ContentPasswordManagerDriver> weak_factory_; | 152 base::WeakPtrFactory<ContentPasswordManagerDriver> weak_factory_; |
| 155 | 153 |
| 156 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); | 154 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); |
| 157 }; | 155 }; |
| 158 | 156 |
| 159 } // namespace password_manager | 157 } // namespace password_manager |
| 160 | 158 |
| 161 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ | 159 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ |
| OLD | NEW |