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