OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MAC_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 base::Time delete_end) override; | 104 base::Time delete_end) override; |
105 std::vector<std::unique_ptr<autofill::PasswordForm>> FillMatchingLogins( | 105 std::vector<std::unique_ptr<autofill::PasswordForm>> FillMatchingLogins( |
106 const FormDigest& form) override; | 106 const FormDigest& form) override; |
107 bool FillAutofillableLogins( | 107 bool FillAutofillableLogins( |
108 std::vector<std::unique_ptr<autofill::PasswordForm>>* forms) override; | 108 std::vector<std::unique_ptr<autofill::PasswordForm>>* forms) override; |
109 bool FillBlacklistLogins( | 109 bool FillBlacklistLogins( |
110 std::vector<std::unique_ptr<autofill::PasswordForm>>* forms) override; | 110 std::vector<std::unique_ptr<autofill::PasswordForm>>* forms) override; |
111 void AddSiteStatsImpl( | 111 void AddSiteStatsImpl( |
112 const password_manager::InteractionsStats& stats) override; | 112 const password_manager::InteractionsStats& stats) override; |
113 void RemoveSiteStatsImpl(const GURL& origin_domain) override; | 113 void RemoveSiteStatsImpl(const GURL& origin_domain) override; |
| 114 std::vector<password_manager::InteractionsStats> GetAllSiteStatsImpl() |
| 115 override; |
114 std::vector<password_manager::InteractionsStats> GetSiteStatsImpl( | 116 std::vector<password_manager::InteractionsStats> GetSiteStatsImpl( |
115 const GURL& origin_domain) override; | 117 const GURL& origin_domain) override; |
116 | 118 |
117 // Adds the given form to the Keychain if it's something we want to store | 119 // Adds the given form to the Keychain if it's something we want to store |
118 // there (i.e., not a blacklist entry or a federated login). Returns true if | 120 // there (i.e., not a blacklist entry or a federated login). Returns true if |
119 // the operation succeeded (either we added successfully, or we didn't need | 121 // the operation succeeded (either we added successfully, or we didn't need |
120 // to). | 122 // to). |
121 bool AddToKeychainIfNecessary(const autofill::PasswordForm& form); | 123 bool AddToKeychainIfNecessary(const autofill::PasswordForm& form); |
122 | 124 |
123 // Returns true if our database contains a form that exactly matches the given | 125 // Returns true if our database contains a form that exactly matches the given |
(...skipping 19 matching lines...) Expand all Loading... |
143 std::unique_ptr<crypto::AppleKeychain> keychain_; | 145 std::unique_ptr<crypto::AppleKeychain> keychain_; |
144 | 146 |
145 // The login metadata SQL database. The caller is resonsible for initializing | 147 // The login metadata SQL database. The caller is resonsible for initializing |
146 // it. | 148 // it. |
147 password_manager::LoginDatabase* login_metadata_db_; | 149 password_manager::LoginDatabase* login_metadata_db_; |
148 | 150 |
149 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); | 151 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); |
150 }; | 152 }; |
151 | 153 |
152 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 154 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ |
OLD | NEW |