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

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

Issue 1414463004: Implement origin-based deletion for passwords in PasswordDefaultMac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Rebase from upstream Created 5 years, 1 month 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_MAC_H_ 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_
7 7
8 #include <string>
vasilii 2015/11/23 15:04:56 You don't use string in the new method.
Timo Reimann 2015/11/24 02:36:09 This is a fix to a (pre-existing) cpplint complain
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
13 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
14 #include "components/password_manager/core/browser/login_database.h" 15 #include "components/password_manager/core/browser/login_database.h"
15 #include "components/password_manager/core/browser/password_store.h" 16 #include "components/password_manager/core/browser/password_store.h"
16 17
17 namespace crypto { 18 namespace crypto {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 private: 71 private:
71 bool Init(const syncer::SyncableService::StartSyncFlare& flare) override; 72 bool Init(const syncer::SyncableService::StartSyncFlare& flare) override;
72 void ReportMetricsImpl(const std::string& sync_username, 73 void ReportMetricsImpl(const std::string& sync_username,
73 bool custom_passphrase_sync_enabled) override; 74 bool custom_passphrase_sync_enabled) override;
74 password_manager::PasswordStoreChangeList AddLoginImpl( 75 password_manager::PasswordStoreChangeList AddLoginImpl(
75 const autofill::PasswordForm& form) override; 76 const autofill::PasswordForm& form) override;
76 password_manager::PasswordStoreChangeList UpdateLoginImpl( 77 password_manager::PasswordStoreChangeList UpdateLoginImpl(
77 const autofill::PasswordForm& form) override; 78 const autofill::PasswordForm& form) override;
78 password_manager::PasswordStoreChangeList RemoveLoginImpl( 79 password_manager::PasswordStoreChangeList RemoveLoginImpl(
79 const autofill::PasswordForm& form) override; 80 const autofill::PasswordForm& form) override;
81 password_manager::PasswordStoreChangeList RemoveLoginsByOriginAndTimeImpl(
82 const url::Origin& origin,
83 base::Time delete_begin,
84 base::Time delete_end) override;
80 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( 85 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl(
81 base::Time delete_begin, 86 base::Time delete_begin,
82 base::Time delete_end) override; 87 base::Time delete_end) override;
83 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( 88 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl(
84 base::Time delete_begin, 89 base::Time delete_begin,
85 base::Time delete_end) override; 90 base::Time delete_end) override;
86 bool RemoveStatisticsCreatedBetweenImpl(base::Time delete_begin, 91 bool RemoveStatisticsCreatedBetweenImpl(base::Time delete_begin,
87 base::Time delete_end) override; 92 base::Time delete_end) override;
88 ScopedVector<autofill::PasswordForm> FillMatchingLogins( 93 ScopedVector<autofill::PasswordForm> FillMatchingLogins(
89 const autofill::PasswordForm& form, 94 const autofill::PasswordForm& form,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 scoped_ptr<crypto::AppleKeychain> keychain_; 130 scoped_ptr<crypto::AppleKeychain> keychain_;
126 131
127 // The login metadata SQL database. The caller is resonsible for initializing 132 // The login metadata SQL database. The caller is resonsible for initializing
128 // it. 133 // it.
129 password_manager::LoginDatabase* login_metadata_db_; 134 password_manager::LoginDatabase* login_metadata_db_;
130 135
131 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); 136 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac);
132 }; 137 };
133 138
134 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ 139 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698