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

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

Issue 1083293004: Implement the statistics table for the passwords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address the comments Created 5 years, 8 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 <vector> 8 #include <vector>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const autofill::PasswordForm& form, 79 const autofill::PasswordForm& form,
80 AuthorizationPromptPolicy prompt_policy) override; 80 AuthorizationPromptPolicy prompt_policy) override;
81 void GetAutofillableLoginsImpl( 81 void GetAutofillableLoginsImpl(
82 scoped_ptr<PasswordStore::GetLoginsRequest> request) override; 82 scoped_ptr<PasswordStore::GetLoginsRequest> request) override;
83 void GetBlacklistLoginsImpl( 83 void GetBlacklistLoginsImpl(
84 scoped_ptr<PasswordStore::GetLoginsRequest> request) override; 84 scoped_ptr<PasswordStore::GetLoginsRequest> request) override;
85 bool FillAutofillableLogins( 85 bool FillAutofillableLogins(
86 ScopedVector<autofill::PasswordForm>* forms) override; 86 ScopedVector<autofill::PasswordForm>* forms) override;
87 bool FillBlacklistLogins( 87 bool FillBlacklistLogins(
88 ScopedVector<autofill::PasswordForm>* forms) override; 88 ScopedVector<autofill::PasswordForm>* forms) override;
89 void AddSiteStatsImpl(
90 const password_manager::InteractionsStats& stats) override;
91 void RemoveSiteStatsImpl(const GURL& origin_domain) override;
92 scoped_ptr<password_manager::InteractionsStats> GetSiteStatsImpl(
93 const GURL& origin_domain) override;
89 94
90 // Adds the given form to the Keychain if it's something we want to store 95 // Adds the given form to the Keychain if it's something we want to store
91 // there (i.e., not a blacklist entry). Returns true if the operation 96 // there (i.e., not a blacklist entry). Returns true if the operation
92 // succeeded (either we added successfully, or we didn't need to). 97 // succeeded (either we added successfully, or we didn't need to).
93 bool AddToKeychainIfNecessary(const autofill::PasswordForm& form); 98 bool AddToKeychainIfNecessary(const autofill::PasswordForm& form);
94 99
95 // Returns true if our database contains a form that exactly matches the given 100 // Returns true if our database contains a form that exactly matches the given
96 // keychain form. 101 // keychain form.
97 bool DatabaseHasFormMatchingKeychainForm( 102 bool DatabaseHasFormMatchingKeychainForm(
98 const autofill::PasswordForm& form); 103 const autofill::PasswordForm& form);
(...skipping 19 matching lines...) Expand all
118 // |login_metadata_db_| will be reset to NULL for the lifetime of |this|. 123 // |login_metadata_db_| will be reset to NULL for the lifetime of |this|.
119 scoped_ptr<password_manager::LoginDatabase> login_metadata_db_; 124 scoped_ptr<password_manager::LoginDatabase> login_metadata_db_;
120 125
121 // Thread that the synchronous methods are run on. 126 // Thread that the synchronous methods are run on.
122 scoped_ptr<base::Thread> thread_; 127 scoped_ptr<base::Thread> thread_;
123 128
124 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); 129 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac);
125 }; 130 };
126 131
127 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ 132 #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