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

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

Issue 2133953002: PasswordForm -> FormDigest for GetLogins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@413020_ssl_valid
Patch Set: Nits addressed Created 4 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 (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_X_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Sets the 'skip_zero_click' flag to 'true' for all logins in the database 72 // Sets the 'skip_zero_click' flag to 'true' for all logins in the database
73 // that match |origin_filter|. 73 // that match |origin_filter|.
74 virtual bool DisableAutoSignInForOrigins( 74 virtual bool DisableAutoSignInForOrigins(
75 const base::Callback<bool(const GURL&)>& origin_filter, 75 const base::Callback<bool(const GURL&)>& origin_filter,
76 password_manager::PasswordStoreChangeList* changes) = 0; 76 password_manager::PasswordStoreChangeList* changes) = 0;
77 77
78 // The three methods below overwrite |forms| with all stored credentials 78 // The three methods below overwrite |forms| with all stored credentials
79 // matching |form|, all stored non-blacklisted credentials, and all stored 79 // matching |form|, all stored non-blacklisted credentials, and all stored
80 // blacklisted credentials, respectively. On success, they return true. 80 // blacklisted credentials, respectively. On success, they return true.
81 virtual bool GetLogins(const autofill::PasswordForm& form, 81 virtual bool GetLogins(const FormDigest& form,
82 ScopedVector<autofill::PasswordForm>* forms) 82 ScopedVector<autofill::PasswordForm>* forms)
83 WARN_UNUSED_RESULT = 0; 83 WARN_UNUSED_RESULT = 0;
84 virtual bool GetAutofillableLogins( 84 virtual bool GetAutofillableLogins(
85 ScopedVector<autofill::PasswordForm>* forms) WARN_UNUSED_RESULT = 0; 85 ScopedVector<autofill::PasswordForm>* forms) WARN_UNUSED_RESULT = 0;
86 virtual bool GetBlacklistLogins(ScopedVector<autofill::PasswordForm>* forms) 86 virtual bool GetBlacklistLogins(ScopedVector<autofill::PasswordForm>* forms)
87 WARN_UNUSED_RESULT = 0; 87 WARN_UNUSED_RESULT = 0;
88 virtual bool GetAllLogins(ScopedVector<autofill::PasswordForm>* forms) 88 virtual bool GetAllLogins(ScopedVector<autofill::PasswordForm>* forms)
89 WARN_UNUSED_RESULT = 0; 89 WARN_UNUSED_RESULT = 0;
90 }; 90 };
91 91
(...skipping 22 matching lines...) Expand all
114 base::Time delete_end) override; 114 base::Time delete_end) override;
115 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( 115 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl(
116 base::Time delete_begin, 116 base::Time delete_begin,
117 base::Time delete_end) override; 117 base::Time delete_end) override;
118 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( 118 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl(
119 base::Time delete_begin, 119 base::Time delete_begin,
120 base::Time delete_end) override; 120 base::Time delete_end) override;
121 password_manager::PasswordStoreChangeList DisableAutoSignInForOriginsImpl( 121 password_manager::PasswordStoreChangeList DisableAutoSignInForOriginsImpl(
122 const base::Callback<bool(const GURL&)>& origin_filter) override; 122 const base::Callback<bool(const GURL&)>& origin_filter) override;
123 ScopedVector<autofill::PasswordForm> FillMatchingLogins( 123 ScopedVector<autofill::PasswordForm> FillMatchingLogins(
124 const autofill::PasswordForm& form) override; 124 const FormDigest& form) override;
125 bool FillAutofillableLogins( 125 bool FillAutofillableLogins(
126 ScopedVector<autofill::PasswordForm>* forms) override; 126 ScopedVector<autofill::PasswordForm>* forms) override;
127 bool FillBlacklistLogins( 127 bool FillBlacklistLogins(
128 ScopedVector<autofill::PasswordForm>* forms) override; 128 ScopedVector<autofill::PasswordForm>* forms) override;
129 129
130 // Check to see whether migration is necessary, and perform it if so. 130 // Check to see whether migration is necessary, and perform it if so.
131 void CheckMigration(); 131 void CheckMigration();
132 132
133 // Return true if we should try using the native backend. 133 // Return true if we should try using the native backend.
134 bool use_native_backend() { return !!backend_.get(); } 134 bool use_native_backend() { return !!backend_.get(); }
(...skipping 15 matching lines...) Expand all
150 // Whether we should allow falling back to the default store. If there is 150 // Whether we should allow falling back to the default store. If there is
151 // nothing to migrate, then the first attempt to use the native store will 151 // nothing to migrate, then the first attempt to use the native store will
152 // be the first time we try to use it and we should allow falling back. If 152 // be the first time we try to use it and we should allow falling back. If
153 // we have migrated successfully, then we do not allow falling back. 153 // we have migrated successfully, then we do not allow falling back.
154 bool allow_fallback_; 154 bool allow_fallback_;
155 155
156 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); 156 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX);
157 }; 157 };
158 158
159 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ 159 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_win_unittest.cc ('k') | chrome/browser/password_manager/password_store_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698