| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "components/autofill/core/common/password_form_field_prediction_map.h" | 10 #include "components/autofill/core/common/password_form_field_prediction_map.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void OnPasswordFormsParsed(const std::vector<autofill::PasswordForm>& forms); | 75 void OnPasswordFormsParsed(const std::vector<autofill::PasswordForm>& forms); |
| 76 void OnPasswordFormsRendered( | 76 void OnPasswordFormsRendered( |
| 77 const std::vector<autofill::PasswordForm>& visible_forms, | 77 const std::vector<autofill::PasswordForm>& visible_forms, |
| 78 bool did_stop_loading); | 78 bool did_stop_loading); |
| 79 void OnPasswordFormSubmitted(const autofill::PasswordForm& password_form); | 79 void OnPasswordFormSubmitted(const autofill::PasswordForm& password_form); |
| 80 void OnInPageNavigation(const autofill::PasswordForm& password_form); | 80 void OnInPageNavigation(const autofill::PasswordForm& password_form); |
| 81 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); | 81 void OnPasswordNoLongerGenerated(const autofill::PasswordForm& password_form); |
| 82 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); | 82 void OnFocusedPasswordFormFound(const autofill::PasswordForm& password_form); |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 bool CheckChildProcessSecurityPolicy(const GURL& url); |
| 86 |
| 85 content::RenderFrameHost* render_frame_host_; | 87 content::RenderFrameHost* render_frame_host_; |
| 86 PasswordManagerClient* client_; | 88 PasswordManagerClient* client_; |
| 87 PasswordGenerationManager password_generation_manager_; | 89 PasswordGenerationManager password_generation_manager_; |
| 88 PasswordAutofillManager password_autofill_manager_; | 90 PasswordAutofillManager password_autofill_manager_; |
| 89 | 91 |
| 90 // Every instance of PasswordFormFillData created by |*this| and sent to | 92 // Every instance of PasswordFormFillData created by |*this| and sent to |
| 91 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that | 93 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that |
| 92 // the latter two classes can reference to the same instance without sending | 94 // the latter two classes can reference to the same instance without sending |
| 93 // it to each other over IPC. The counter below is used to generate new IDs. | 95 // it to each other over IPC. The counter below is used to generate new IDs. |
| 94 int next_free_key_; | 96 int next_free_key_; |
| 95 | 97 |
| 96 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); | 98 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); |
| 97 }; | 99 }; |
| 98 | 100 |
| 99 } // namespace password_manager | 101 } // namespace password_manager |
| 100 | 102 |
| 101 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ | 103 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ |
| OLD | NEW |