| 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 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void OnPasswordFormsParsedNoRenderCheck( | 85 void OnPasswordFormsParsedNoRenderCheck( |
| 86 const std::vector<autofill::PasswordForm>& forms); | 86 const std::vector<autofill::PasswordForm>& forms); |
| 87 void OnPasswordFormsRendered( | 87 void OnPasswordFormsRendered( |
| 88 const std::vector<autofill::PasswordForm>& visible_forms, | 88 const std::vector<autofill::PasswordForm>& visible_forms, |
| 89 bool did_stop_loading); | 89 bool did_stop_loading); |
| 90 void OnPasswordFormSubmitted(const autofill::PasswordForm& password_form); | 90 void OnPasswordFormSubmitted(const autofill::PasswordForm& password_form); |
| 91 void OnInPageNavigation(const autofill::PasswordForm& password_form); | 91 void OnInPageNavigation(const autofill::PasswordForm& password_form); |
| 92 void OnPresaveGeneratedPassword(const autofill::PasswordForm& password_form); | 92 void OnPresaveGeneratedPassword(const autofill::PasswordForm& password_form); |
| 93 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); | 93 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); |
| 94 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); | 94 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); |
| 95 void OnSaveGenerationFieldDetectedByClassifier( |
| 96 const autofill::PasswordForm& password_form, |
| 97 const base::string16& generation_field); |
| 95 | 98 |
| 96 private: | 99 private: |
| 97 bool CheckChildProcessSecurityPolicy(const GURL& url, | 100 bool CheckChildProcessSecurityPolicy(const GURL& url, |
| 98 BadMessageReason reason); | 101 BadMessageReason reason); |
| 99 | 102 |
| 100 content::RenderFrameHost* render_frame_host_; | 103 content::RenderFrameHost* render_frame_host_; |
| 101 PasswordManagerClient* client_; | 104 PasswordManagerClient* client_; |
| 102 PasswordGenerationManager password_generation_manager_; | 105 PasswordGenerationManager password_generation_manager_; |
| 103 PasswordAutofillManager password_autofill_manager_; | 106 PasswordAutofillManager password_autofill_manager_; |
| 104 | 107 |
| 105 // Every instance of PasswordFormFillData created by |*this| and sent to | 108 // Every instance of PasswordFormFillData created by |*this| and sent to |
| 106 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that | 109 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that |
| 107 // the latter two classes can reference to the same instance without sending | 110 // the latter two classes can reference to the same instance without sending |
| 108 // it to each other over IPC. The counter below is used to generate new IDs. | 111 // it to each other over IPC. The counter below is used to generate new IDs. |
| 109 int next_free_key_; | 112 int next_free_key_; |
| 110 | 113 |
| 111 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); | 114 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); |
| 112 }; | 115 }; |
| 113 | 116 |
| 114 } // namespace password_manager | 117 } // namespace password_manager |
| 115 | 118 |
| 116 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ | 119 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ |
| OLD | NEW |