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

Side by Side Diff: components/password_manager/core/browser/password_store_default.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_DEFAULT_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_DEFAULT_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_DEFAULT_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_DEFAULT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const autofill::PasswordForm& form) override; 48 const autofill::PasswordForm& form) override;
49 PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( 49 PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl(
50 base::Time delete_begin, 50 base::Time delete_begin,
51 base::Time delete_end) override; 51 base::Time delete_end) override;
52 PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( 52 PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl(
53 base::Time delete_begin, 53 base::Time delete_begin,
54 base::Time delete_end) override; 54 base::Time delete_end) override;
55 ScopedVector<autofill::PasswordForm> FillMatchingLogins( 55 ScopedVector<autofill::PasswordForm> FillMatchingLogins(
56 const autofill::PasswordForm& form, 56 const autofill::PasswordForm& form,
57 AuthorizationPromptPolicy prompt_policy) override; 57 AuthorizationPromptPolicy prompt_policy) override;
58 void GetAutofillableLoginsImpl(scoped_ptr<GetLoginsRequest> request) override;
59 void GetBlacklistLoginsImpl(scoped_ptr<GetLoginsRequest> request) override;
60 bool FillAutofillableLogins( 58 bool FillAutofillableLogins(
61 ScopedVector<autofill::PasswordForm>* forms) override; 59 ScopedVector<autofill::PasswordForm>* forms) override;
62 bool FillBlacklistLogins( 60 bool FillBlacklistLogins(
63 ScopedVector<autofill::PasswordForm>* forms) override; 61 ScopedVector<autofill::PasswordForm>* forms) override;
64 void AddSiteStatsImpl(const InteractionsStats& stats) override; 62 void AddSiteStatsImpl(const InteractionsStats& stats) override;
65 void RemoveSiteStatsImpl(const GURL& origin_domain) override; 63 void RemoveSiteStatsImpl(const GURL& origin_domain) override;
66 scoped_ptr<InteractionsStats> GetSiteStatsImpl( 64 scoped_ptr<InteractionsStats> GetSiteStatsImpl(
67 const GURL& origin_domain) override; 65 const GURL& origin_domain) override;
68 66
69 inline bool DeleteAndRecreateDatabaseFile() { 67 inline bool DeleteAndRecreateDatabaseFile() {
70 return login_db_->DeleteAndRecreateDatabaseFile(); 68 return login_db_->DeleteAndRecreateDatabaseFile();
71 } 69 }
72 70
73 private: 71 private:
74 // Resets |login_db_| on the background thread. 72 // Resets |login_db_| on the background thread.
75 void ResetLoginDB(); 73 void ResetLoginDB();
76 74
77 // The login SQL database. The LoginDatabase instance is received via the 75 // The login SQL database. The LoginDatabase instance is received via the
78 // in an uninitialized state, so as to allow injecting mocks, then Init() is 76 // in an uninitialized state, so as to allow injecting mocks, then Init() is
79 // called on the DB thread in a deferred manner. If opening the DB fails, 77 // called on the DB thread in a deferred manner. If opening the DB fails,
80 // |login_db_| will be reset and stay NULL for the lifetime of |this|. 78 // |login_db_| will be reset and stay NULL for the lifetime of |this|.
81 scoped_ptr<LoginDatabase> login_db_; 79 scoped_ptr<LoginDatabase> login_db_;
82 80
83 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); 81 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault);
84 }; 82 };
85 83
86 } // namespace password_manager 84 } // namespace password_manager
87 85
88 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_DEFAULT_H_ 86 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_STORE_DEFAULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698