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

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

Issue 335893002: Support to remove passwords by date_synced timestamp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: vabr's comments Created 6 years, 6 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 | Annotate | Revision Log
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Removes |form| from the list of remembered password forms. 48 // Removes |form| from the list of remembered password forms.
49 bool RemoveLogin(const autofill::PasswordForm& form); 49 bool RemoveLogin(const autofill::PasswordForm& form);
50 50
51 // Removes all logins created from |delete_begin| onwards (inclusive) and 51 // Removes all logins created from |delete_begin| onwards (inclusive) and
52 // before |delete_end|. You may use a null Time value to do an unbounded 52 // before |delete_end|. You may use a null Time value to do an unbounded
53 // delete in either direction. 53 // delete in either direction.
54 bool RemoveLoginsCreatedBetween(const base::Time delete_begin, 54 bool RemoveLoginsCreatedBetween(const base::Time delete_begin,
55 const base::Time delete_end); 55 const base::Time delete_end);
56 56
57 // Removes all logins synced from |delete_begin| onwards (inclusive) and
58 // before |delete_end|. You may use a null Time value to do an unbounded
59 // delete in either direction.
60 bool RemoveLoginsSyncedBetween(base::Time delete_begin,
61 base::Time delete_end);
62
57 // Loads a list of matching password forms into the specified vector |forms|. 63 // Loads a list of matching password forms into the specified vector |forms|.
58 // The list will contain all possibly relevant entries to the observed |form|, 64 // The list will contain all possibly relevant entries to the observed |form|,
59 // including blacklisted matches. 65 // including blacklisted matches.
60 bool GetLogins(const autofill::PasswordForm& form, 66 bool GetLogins(const autofill::PasswordForm& form,
61 std::vector<autofill::PasswordForm*>* forms) const; 67 std::vector<autofill::PasswordForm*>* forms) const;
62 68
63 // Loads all logins created from |begin| onwards (inclusive) and before |end|. 69 // Loads all logins created from |begin| onwards (inclusive) and before |end|.
64 // You may use a null Time value to do an unbounded search in either 70 // You may use a null Time value to do an unbounded search in either
65 // direction. 71 // direction.
66 bool GetLoginsCreatedBetween( 72 bool GetLoginsCreatedBetween(
67 const base::Time begin, 73 base::Time begin,
68 const base::Time end, 74 base::Time end,
75 std::vector<autofill::PasswordForm*>* forms) const;
76
77 // Loads all logins synced from |begin| onwards (inclusive) and before |end|.
78 // You may use a null Time value to do an unbounded search in either
79 // direction.
80 bool GetLoginsSyncedBetween(
81 base::Time begin,
82 base::Time end,
69 std::vector<autofill::PasswordForm*>* forms) const; 83 std::vector<autofill::PasswordForm*>* forms) const;
70 84
71 // Loads the complete list of autofillable password forms (i.e., not blacklist 85 // Loads the complete list of autofillable password forms (i.e., not blacklist
72 // entries) into |forms|. 86 // entries) into |forms|.
73 bool GetAutofillableLogins( 87 bool GetAutofillableLogins(
74 std::vector<autofill::PasswordForm*>* forms) const; 88 std::vector<autofill::PasswordForm*>* forms) const;
75 89
76 // Loads the complete list of blacklist forms into |forms|. 90 // Loads the complete list of blacklist forms into |forms|.
77 bool GetBlacklistLogins( 91 bool GetBlacklistLogins(
78 std::vector<autofill::PasswordForm*>* forms) const; 92 std::vector<autofill::PasswordForm*>* forms) const;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 sql::MetaTable meta_table_; 147 sql::MetaTable meta_table_;
134 148
135 PSLMatchingHelper psl_helper_; 149 PSLMatchingHelper psl_helper_;
136 150
137 DISALLOW_COPY_AND_ASSIGN(LoginDatabase); 151 DISALLOW_COPY_AND_ASSIGN(LoginDatabase);
138 }; 152 };
139 153
140 } // namespace password_manager 154 } // namespace password_manager
141 155
142 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_ 156 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_LOGIN_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698