Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Side by Side Diff: chrome/browser/password_manager/password_store_mac.h

Issue 2695233004: Implement PasswordStore::GetAllStats (Closed)
Patch Set: Add Mac Implementations Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/password_manager/password_store_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698