| 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/password_manager/core/browser/password_autofill_manager.h" | 10 #include "components/password_manager/core/browser/password_autofill_manager.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 bool OnMessageReceived(const IPC::Message& message) override; | 56 bool OnMessageReceived(const IPC::Message& message) override; |
| 57 void DidNavigateMainFrame( | 57 void DidNavigateMainFrame( |
| 58 const content::LoadCommittedDetails& details, | 58 const content::LoadCommittedDetails& details, |
| 59 const content::FrameNavigateParams& params) override; | 59 const content::FrameNavigateParams& params) override; |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 PasswordManager password_manager_; | 62 PasswordManager password_manager_; |
| 63 PasswordGenerationManager password_generation_manager_; | 63 PasswordGenerationManager password_generation_manager_; |
| 64 PasswordAutofillManager password_autofill_manager_; | 64 PasswordAutofillManager password_autofill_manager_; |
| 65 | 65 |
| 66 // Every instance of PasswordFormFillData created by |*this| and sent to |
| 67 // PasswordAutofillManager and PasswordAutofillAgent is given an ID, so that |
| 68 // the latter two classes can reference to the same instance without sending |
| 69 // it to each other over IPC. The counter below is used to generate new IDs. |
| 70 int next_free_key_; |
| 71 |
| 66 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); | 72 DISALLOW_COPY_AND_ASSIGN(ContentPasswordManagerDriver); |
| 67 }; | 73 }; |
| 68 | 74 |
| 69 } // namespace password_manager | 75 } // namespace password_manager |
| 70 | 76 |
| 71 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ | 77 #endif // COMPONENTS_PASSWORD_MANAGER_CONTENT_BROWSER_CONTENT_PASSWORD_MANAGER_
DRIVER_H_ |
| OLD | NEW |