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_CORE_BROWSER_TEST_PASSWORD_STORE_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // PasswordStore interface | 43 // PasswordStore interface |
44 PasswordStoreChangeList AddLoginImpl( | 44 PasswordStoreChangeList AddLoginImpl( |
45 const autofill::PasswordForm& form) override; | 45 const autofill::PasswordForm& form) override; |
46 PasswordStoreChangeList UpdateLoginImpl( | 46 PasswordStoreChangeList UpdateLoginImpl( |
47 const autofill::PasswordForm& form) override; | 47 const autofill::PasswordForm& form) override; |
48 PasswordStoreChangeList RemoveLoginImpl( | 48 PasswordStoreChangeList RemoveLoginImpl( |
49 const autofill::PasswordForm& form) override; | 49 const autofill::PasswordForm& form) override; |
50 ScopedVector<autofill::PasswordForm> FillMatchingLogins( | 50 ScopedVector<autofill::PasswordForm> FillMatchingLogins( |
51 const autofill::PasswordForm& form, | 51 const autofill::PasswordForm& form, |
52 PasswordStore::AuthorizationPromptPolicy prompt_policy) override; | 52 PasswordStore::AuthorizationPromptPolicy prompt_policy) override; |
53 void GetAutofillableLoginsImpl(scoped_ptr<GetLoginsRequest> request) override; | |
54 | 53 |
55 // Unused portions of PasswordStore interface | 54 // Unused portions of PasswordStore interface |
56 void ReportMetricsImpl(const std::string& sync_username, | 55 void ReportMetricsImpl(const std::string& sync_username, |
57 bool custom_passphrase_sync_enabled) override; | 56 bool custom_passphrase_sync_enabled) override; |
58 PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( | 57 PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( |
59 base::Time begin, | 58 base::Time begin, |
60 base::Time end) override; | 59 base::Time end) override; |
61 PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( | 60 PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( |
62 base::Time delete_begin, | 61 base::Time delete_begin, |
63 base::Time delete_end) override; | 62 base::Time delete_end) override; |
64 void GetBlacklistLoginsImpl(scoped_ptr<GetLoginsRequest> request) override; | |
65 bool FillAutofillableLogins( | 63 bool FillAutofillableLogins( |
66 ScopedVector<autofill::PasswordForm>* forms) override; | 64 ScopedVector<autofill::PasswordForm>* forms) override; |
67 bool FillBlacklistLogins( | 65 bool FillBlacklistLogins( |
68 ScopedVector<autofill::PasswordForm>* forms) override; | 66 ScopedVector<autofill::PasswordForm>* forms) override; |
69 void AddSiteStatsImpl(const InteractionsStats& stats) override; | 67 void AddSiteStatsImpl(const InteractionsStats& stats) override; |
70 void RemoveSiteStatsImpl(const GURL& origin_domain) override; | 68 void RemoveSiteStatsImpl(const GURL& origin_domain) override; |
71 scoped_ptr<InteractionsStats> GetSiteStatsImpl( | 69 scoped_ptr<InteractionsStats> GetSiteStatsImpl( |
72 const GURL& origin_domain) override; | 70 const GURL& origin_domain) override; |
73 | 71 |
74 private: | 72 private: |
75 PasswordMap stored_passwords_; | 73 PasswordMap stored_passwords_; |
76 | 74 |
77 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); | 75 DISALLOW_COPY_AND_ASSIGN(TestPasswordStore); |
78 }; | 76 }; |
79 | 77 |
80 } // namespace password_manager | 78 } // namespace password_manager |
81 | 79 |
82 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ | 80 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_TEST_PASSWORD_STORE_H_ |
OLD | NEW |