| 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/public/interfaces/autofill_agent.mojom.h" |
| 13 #include "components/autofill/core/common/password_form_field_prediction_map.h" | 14 #include "components/autofill/core/common/password_form_field_prediction_map.h" |
| 14 #include "components/autofill/core/common/password_form_generation_data.h" | 15 #include "components/autofill/core/common/password_form_generation_data.h" |
| 15 #include "components/password_manager/core/browser/password_autofill_manager.h" | 16 #include "components/password_manager/core/browser/password_autofill_manager.h" |
| 16 #include "components/password_manager/core/browser/password_generation_manager.h
" | 17 #include "components/password_manager/core/browser/password_generation_manager.h
" |
| 17 #include "components/password_manager/core/browser/password_manager.h" | 18 #include "components/password_manager/core/browser/password_manager.h" |
| 18 #include "components/password_manager/core/browser/password_manager_driver.h" | 19 #include "components/password_manager/core/browser/password_manager_driver.h" |
| 19 | 20 |
| 20 namespace autofill { | 21 namespace autofill { |
| 21 class AutofillManager; | 22 class AutofillManager; |
| 22 struct PasswordForm; | 23 struct PasswordForm; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); | 95 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); |
| 95 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); | 96 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); |
| 96 void OnSaveGenerationFieldDetectedByClassifier( | 97 void OnSaveGenerationFieldDetectedByClassifier( |
| 97 const autofill::PasswordForm& password_form, | 98 const autofill::PasswordForm& password_form, |
| 98 const base::string16& generation_field); | 99 const base::string16& generation_field); |
| 99 | 100 |
| 100 private: | 101 private: |
| 101 bool CheckChildProcessSecurityPolicy(const GURL& url, | 102 bool CheckChildProcessSecurityPolicy(const GURL& url, |
| 102 BadMessageReason reason); | 103 BadMessageReason reason); |
| 103 | 104 |
| 105 const autofill::mojom::AutofillAgentPtr& GetMojoAutofillAgent(); |
| 106 |
| 104 content::RenderFrameHost* render_frame_host_; | 107 content::RenderFrameHost* render_frame_host_; |
| 105 PasswordManagerClient* client_; | 108 PasswordManagerClient* client_; |
| 106 PasswordGenerationManager password_generation_manager_; | 109 PasswordGenerationManager password_generation_manager_; |
| 107 PasswordAutofillManager password_autofill_manager_; | 110 PasswordAutofillManager password_autofill_manager_; |
| 108 | 111 |
| 109 // Every instance of PasswordFormFillData created by |*this| and sent to | 112 // Every instance of PasswordFormFillData created by |*this| and sent to |
| 110 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that | 113 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that |
| 111 // the latter two classes can reference to the same instance without sending | 114 // the latter two classes can reference to the same instance without sending |
| 112 // it to each other over IPC. The counter below is used to generate new IDs. | 115 // it to each other over IPC. The counter below is used to generate new IDs. |
| 113 int next_free_key_; | 116 int next_free_key_; |
| 114 | 117 |
| 115 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); | 118 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); |
| 116 }; | 119 }; |
| 117 | 120 |
| 118 } // namespace password_manager | 121 } // namespace password_manager |
| 119 | 122 |
| 120 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ | 123 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ |
| OLD | NEW |