| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Schedule the given task to be run in the PasswordStore's own thread. | 103 // Schedule the given task to be run in the PasswordStore's own thread. |
| 104 void ScheduleTask(Task* task); | 104 void ScheduleTask(Task* task); |
| 105 | 105 |
| 106 // These will be run in PasswordStore's own thread. | 106 // These will be run in PasswordStore's own thread. |
| 107 // Synchronous implementation to add the given login. | 107 // Synchronous implementation to add the given login. |
| 108 virtual void AddLoginImpl(const webkit_glue::PasswordForm& form) = 0; | 108 virtual void AddLoginImpl(const webkit_glue::PasswordForm& form) = 0; |
| 109 // Synchronous implementation to update the given login. | 109 // Synchronous implementation to update the given login. |
| 110 virtual void UpdateLoginImpl(const webkit_glue::PasswordForm& form) = 0; | 110 virtual void UpdateLoginImpl(const webkit_glue::PasswordForm& form) = 0; |
| 111 // Synchronous implementation to remove the given login. | 111 // Synchronous implementation to remove the given login. |
| 112 virtual void RemoveLoginImpl(const webkit_glue::PasswordForm& form) = 0; | 112 virtual void RemoveLoginImpl(const webkit_glue::PasswordForm& form) = 0; |
| 113 // Synchronous implementation to remove the given logins. |
| 114 virtual void RemoveLoginsCreatedBetweenImpl(const base::Time& delete_begin, |
| 115 const base::Time& delete_end) = 0; |
| 113 // Should find all PasswordForms with the same signon_realm. The results | 116 // Should find all PasswordForms with the same signon_realm. The results |
| 114 // will then be scored by the PasswordFormManager. Once they are found | 117 // will then be scored by the PasswordFormManager. Once they are found |
| 115 // (or not), the consumer should be notified. | 118 // (or not), the consumer should be notified. |
| 116 virtual void RemoveLoginsCreatedBetweenImpl(const base::Time& delete_begin, | |
| 117 const base::Time& delete_end) = 0; | |
| 118 virtual void GetLoginsImpl(GetLoginsRequest* request, | 119 virtual void GetLoginsImpl(GetLoginsRequest* request, |
| 119 const webkit_glue::PasswordForm& form) = 0; | 120 const webkit_glue::PasswordForm& form) = 0; |
| 120 // Finds all non-blacklist PasswordForms, and notifies the consumer. | 121 // Finds all non-blacklist PasswordForms, and notifies the consumer. |
| 121 virtual void GetAutofillableLoginsImpl(GetLoginsRequest* request) = 0; | 122 virtual void GetAutofillableLoginsImpl(GetLoginsRequest* request) = 0; |
| 122 // Finds all blacklist PasswordForms, and notifies the consumer. | 123 // Finds all blacklist PasswordForms, and notifies the consumer. |
| 123 virtual void GetBlacklistLoginsImpl(GetLoginsRequest* request) = 0; | 124 virtual void GetBlacklistLoginsImpl(GetLoginsRequest* request) = 0; |
| 124 | 125 |
| 125 // Finds all non-blacklist PasswordForms, and fills the vector. | 126 // Finds all non-blacklist PasswordForms, and fills the vector. |
| 126 virtual bool FillAutofillableLogins( | 127 virtual bool FillAutofillableLogins( |
| 127 std::vector<webkit_glue::PasswordForm*>* forms) = 0; | 128 std::vector<webkit_glue::PasswordForm*>* forms) = 0; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 150 int handle_; | 151 int handle_; |
| 151 | 152 |
| 152 // List of pending request handles. Handles are removed from the set when | 153 // List of pending request handles. Handles are removed from the set when |
| 153 // they finish or are canceled. | 154 // they finish or are canceled. |
| 154 std::set<int> pending_requests_; | 155 std::set<int> pending_requests_; |
| 155 | 156 |
| 156 DISALLOW_COPY_AND_ASSIGN(PasswordStore); | 157 DISALLOW_COPY_AND_ASSIGN(PasswordStore); |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ | 160 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_H_ |
| OLD | NEW |