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); |
90 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); | 91 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); |
91 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); | 92 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); |
92 | 93 |
93 private: | 94 private: |
94 bool CheckChildProcessSecurityPolicy(const GURL& url, | 95 bool CheckChildProcessSecurityPolicy(const GURL& url, |
95 BadMessageReason reason); | 96 BadMessageReason reason); |
96 | 97 |
97 content::RenderFrameHost* render_frame_host_; | 98 content::RenderFrameHost* render_frame_host_; |
98 PasswordManagerClient* client_; | 99 PasswordManagerClient* client_; |
99 PasswordGenerationManager password_generation_manager_; | 100 PasswordGenerationManager password_generation_manager_; |
100 PasswordAutofillManager password_autofill_manager_; | 101 PasswordAutofillManager password_autofill_manager_; |
101 | 102 |
102 // Every instance of PasswordFormFillData created by |*this| and sent to | 103 // Every instance of PasswordFormFillData created by |*this| and sent to |
103 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that | 104 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that |
104 // the latter two classes can reference to the same instance without sending | 105 // 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. | 106 // it to each other over IPC. The counter below is used to generate new IDs. |
106 int next_free_key_; | 107 int next_free_key_; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); | 109 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); |
109 }; | 110 }; |
110 | 111 |
111 } // namespace password_manager | 112 } // namespace password_manager |
112 | 113 |
113 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ | 114 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ |
OLD | NEW |