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

Side by Side Diff: components/password_manager/core/browser/login_database.h

Issue 1248613003: Issue 501916 : Add data type counts to profile deletion flow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First draft Created 5 years, 5 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
OLDNEW
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_LOGIN_DATABASE_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 WARN_UNUSED_RESULT; 79 WARN_UNUSED_RESULT;
80 80
81 // Gets all logins created from |begin| onwards (inclusive) and before |end|. 81 // Gets all logins created from |begin| onwards (inclusive) and before |end|.
82 // You may use a null Time value to do an unbounded search in either 82 // You may use a null Time value to do an unbounded search in either
83 // direction. 83 // direction.
84 bool GetLoginsCreatedBetween( 84 bool GetLoginsCreatedBetween(
85 base::Time begin, 85 base::Time begin,
86 base::Time end, 86 base::Time end,
87 ScopedVector<autofill::PasswordForm>* forms) const WARN_UNUSED_RESULT; 87 ScopedVector<autofill::PasswordForm>* forms) const WARN_UNUSED_RESULT;
88 88
89 // Gets the count of all logins.
90 int GetCountOfLogins() const;
91
89 // Gets all logins synced from |begin| onwards (inclusive) and before |end|. 92 // Gets all logins synced from |begin| onwards (inclusive) and before |end|.
90 // You may use a null Time value to do an unbounded search in either 93 // You may use a null Time value to do an unbounded search in either
91 // direction. 94 // direction.
92 bool GetLoginsSyncedBetween(base::Time begin, 95 bool GetLoginsSyncedBetween(base::Time begin,
93 base::Time end, 96 base::Time end,
94 ScopedVector<autofill::PasswordForm>* forms) const 97 ScopedVector<autofill::PasswordForm>* forms) const
95 WARN_UNUSED_RESULT; 98 WARN_UNUSED_RESULT;
96 99
97 // Gets the complete list of not blacklisted credentials. 100 // Gets the complete list of not blacklisted credentials.
98 bool GetAutofillableLogins(ScopedVector<autofill::PasswordForm>* forms) const 101 bool GetAutofillableLogins(ScopedVector<autofill::PasswordForm>* forms) const
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // This is a temporary measure for migration the Keychain on Mac. 181 // This is a temporary measure for migration the Keychain on Mac.
179 // crbug.com/466638 182 // crbug.com/466638
180 bool clear_password_values_; 183 bool clear_password_values_;
181 184
182 DISALLOW_COPY_AND_ASSIGN(LoginDatabase); 185 DISALLOW_COPY_AND_ASSIGN(LoginDatabase);
183 }; 186 };
184 187
185 } // namespace password_manager 188 } // namespace password_manager
186 189
187 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_ 190 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698