| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_PASSWORD_STORE_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_TEST_PASSWORD_STORE_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_TEST_PASSWORD_STORE_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_TEST_PASSWORD_STORE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 void Clear(); | 39 void Clear(); |
| 40 | 40 |
| 41 protected: | 41 protected: |
| 42 virtual ~TestPasswordStore(); | 42 virtual ~TestPasswordStore(); |
| 43 | 43 |
| 44 // Helper function to determine if forms are considered equivalent. | 44 // Helper function to determine if forms are considered equivalent. |
| 45 bool FormsAreEquivalent(const autofill::PasswordForm& lhs, | 45 bool FormsAreEquivalent(const autofill::PasswordForm& lhs, |
| 46 const autofill::PasswordForm& rhs); | 46 const autofill::PasswordForm& rhs); |
| 47 | 47 |
| 48 // PasswordStore interface | 48 // PasswordStore interface |
| 49 virtual scoped_refptr<base::SequencedTaskRunner> GetTaskRunner() OVERRIDE; | |
| 50 virtual void AddLoginImpl(const autofill::PasswordForm& form) OVERRIDE; | 49 virtual void AddLoginImpl(const autofill::PasswordForm& form) OVERRIDE; |
| 51 virtual void UpdateLoginImpl(const autofill::PasswordForm& form) OVERRIDE; | 50 virtual void UpdateLoginImpl(const autofill::PasswordForm& form) OVERRIDE; |
| 52 virtual void RemoveLoginImpl(const autofill::PasswordForm& form) OVERRIDE; | 51 virtual void RemoveLoginImpl(const autofill::PasswordForm& form) OVERRIDE; |
| 53 virtual void GetLoginsImpl( | 52 virtual void GetLoginsImpl( |
| 54 const autofill::PasswordForm& form, | 53 const autofill::PasswordForm& form, |
| 55 PasswordStore::AuthorizationPromptPolicy prompt_policy, | 54 PasswordStore::AuthorizationPromptPolicy prompt_policy, |
| 56 const ConsumerCallbackRunner& runner) OVERRIDE; | 55 const ConsumerCallbackRunner& runner) OVERRIDE; |
| 57 virtual void WrapModificationTask(base::Closure task) OVERRIDE; | 56 virtual void WrapModificationTask(base::Closure task) OVERRIDE; |
| 58 | 57 |
| 59 // Unused portions of PasswordStore interface | 58 // Unused portions of PasswordStore interface |
| (...skipping 10 matching lines...) Expand all Loading... |
| 70 std::vector<autofill::PasswordForm*>* forms) OVERRIDE; | 69 std::vector<autofill::PasswordForm*>* forms) OVERRIDE; |
| 71 virtual void ShutdownOnUIThread() OVERRIDE {} | 70 virtual void ShutdownOnUIThread() OVERRIDE {} |
| 72 | 71 |
| 73 private: | 72 private: |
| 74 PasswordMap stored_passwords_; | 73 PasswordMap stored_passwords_; |
| 75 | 74 |
| 76 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); | 75 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 #endif // CHROME_BROWSER_PASSWORD_MANAGER_TEST_PASSWORD_STORE_H_ | 78 #endif // CHROME_BROWSER_PASSWORD_MANAGER_TEST_PASSWORD_STORE_H_ |
| OLD | NEW |