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

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

Issue 1200603003: Integrate PasswordStoreProxyMac instead of PasswordStoreMac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments 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_PASSWORD_STORE_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // login. 240 // login.
241 virtual PasswordStoreChangeList RemoveLoginImpl( 241 virtual PasswordStoreChangeList RemoveLoginImpl(
242 const autofill::PasswordForm& form) = 0; 242 const autofill::PasswordForm& form) = 0;
243 243
244 // Finds and returns all PasswordForms with the same signon_realm as |form|, 244 // Finds and returns all PasswordForms with the same signon_realm as |form|,
245 // or with a signon_realm that is a PSL-match to that of |form|. 245 // or with a signon_realm that is a PSL-match to that of |form|.
246 virtual ScopedVector<autofill::PasswordForm> FillMatchingLogins( 246 virtual ScopedVector<autofill::PasswordForm> FillMatchingLogins(
247 const autofill::PasswordForm& form, 247 const autofill::PasswordForm& form,
248 AuthorizationPromptPolicy prompt_policy) = 0; 248 AuthorizationPromptPolicy prompt_policy) = 0;
249 249
250 // Finds all non-blacklist PasswordForms, and notifies the consumer.
251 virtual void GetAutofillableLoginsImpl(
252 scoped_ptr<GetLoginsRequest> request) = 0;
253
254 // Finds all blacklist PasswordForms, and notifies the consumer.
255 virtual void GetBlacklistLoginsImpl(scoped_ptr<GetLoginsRequest> request) = 0;
256
257 // Synchronous implementation for manipulating with statistics. 250 // Synchronous implementation for manipulating with statistics.
258 virtual void AddSiteStatsImpl(const InteractionsStats& stats) = 0; 251 virtual void AddSiteStatsImpl(const InteractionsStats& stats) = 0;
259 virtual void RemoveSiteStatsImpl(const GURL& origin_domain) = 0; 252 virtual void RemoveSiteStatsImpl(const GURL& origin_domain) = 0;
260 // Returns a raw pointer so that InteractionsStats can be forward declared. 253 // Returns a raw pointer so that InteractionsStats can be forward declared.
261 virtual scoped_ptr<InteractionsStats> GetSiteStatsImpl( 254 virtual scoped_ptr<InteractionsStats> GetSiteStatsImpl(
262 const GURL& origin_domain) WARN_UNUSED_RESULT = 0; 255 const GURL& origin_domain) WARN_UNUSED_RESULT = 0;
263 256
264 // Log UMA stats for number of bulk deletions. 257 // Log UMA stats for number of bulk deletions.
265 void LogStatsForBulkDeletion(int num_deletions); 258 void LogStatsForBulkDeletion(int num_deletions);
266 259
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 302
310 // Temporary specializations of WrapModificationTask for a better stack trace. 303 // Temporary specializations of WrapModificationTask for a better stack trace.
311 void AddLoginInternal(const autofill::PasswordForm& form); 304 void AddLoginInternal(const autofill::PasswordForm& form);
312 void UpdateLoginInternal(const autofill::PasswordForm& form); 305 void UpdateLoginInternal(const autofill::PasswordForm& form);
313 void RemoveLoginInternal(const autofill::PasswordForm& form); 306 void RemoveLoginInternal(const autofill::PasswordForm& form);
314 void RemoveLoginsCreatedBetweenInternal(base::Time delete_begin, 307 void RemoveLoginsCreatedBetweenInternal(base::Time delete_begin,
315 base::Time delete_end); 308 base::Time delete_end);
316 void RemoveLoginsSyncedBetweenInternal(base::Time delete_begin, 309 void RemoveLoginsSyncedBetweenInternal(base::Time delete_begin,
317 base::Time delete_end); 310 base::Time delete_end);
318 311
312 // Finds all non-blacklist PasswordForms, and notifies the consumer.
313 void GetAutofillableLoginsImpl(scoped_ptr<GetLoginsRequest> request);
314
315 // Finds all blacklist PasswordForms, and notifies the consumer.
316 void GetBlacklistLoginsImpl(scoped_ptr<GetLoginsRequest> request);
317
319 // Notifies |request| about the stats for |origin_domain|. 318 // Notifies |request| about the stats for |origin_domain|.
320 void NotifySiteStats(const GURL& origin_domain, 319 void NotifySiteStats(const GURL& origin_domain,
321 scoped_ptr<GetLoginsRequest> request); 320 scoped_ptr<GetLoginsRequest> request);
322 321
323 // Extended version of GetLoginsImpl that also returns credentials stored for 322 // Extended version of GetLoginsImpl that also returns credentials stored for
324 // the specified affiliated Android applications. That is, it finds all 323 // the specified affiliated Android applications. That is, it finds all
325 // PasswordForms with a signon_realm that is either: 324 // PasswordForms with a signon_realm that is either:
326 // * equal to that of |form|, 325 // * equal to that of |form|,
327 // * is a PSL-match to the realm of |form|, 326 // * is a PSL-match to the realm of |form|,
328 // * is one of those in |additional_android_realms|, 327 // * is one of those in |additional_android_realms|,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 bool is_propagating_password_changes_to_web_credentials_enabled_; 386 bool is_propagating_password_changes_to_web_credentials_enabled_;
388 387
389 bool shutdown_called_; 388 bool shutdown_called_;
390 389
391 DISALLOW_COPY_AND_ASSIGN(PasswordStore); 390 DISALLOW_COPY_AND_ASSIGN(PasswordStore);
392 }; 391 };
393 392
394 } // namespace password_manager 393 } // namespace password_manager
395 394
396 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_ 395 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698