OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 public: | 30 public: |
31 // Takes ownership of |keychain| and |login_db|, both of which must be | 31 // Takes ownership of |keychain| and |login_db|, both of which must be |
32 // non-NULL. | 32 // non-NULL. |
33 PasswordStoreMac( | 33 PasswordStoreMac( |
34 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner, | 34 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner, |
35 scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner, | 35 scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner, |
36 crypto::AppleKeychain* keychain, | 36 crypto::AppleKeychain* keychain, |
37 password_manager::LoginDatabase* login_db); | 37 password_manager::LoginDatabase* login_db); |
38 | 38 |
39 // Initializes |thread_|. | 39 // Initializes |thread_|. |
40 bool Init(const syncer::SyncableService::StartSyncFlare& flare, | 40 bool Init(const syncer::SyncableService::StartSyncFlare& flare) override; |
41 const std::string& sync_username) override; | |
42 | 41 |
43 // Stops |thread_|. | 42 // Stops |thread_|. |
44 void Shutdown() override; | 43 void Shutdown() override; |
45 | 44 |
46 protected: | 45 protected: |
47 ~PasswordStoreMac() override; | 46 ~PasswordStoreMac() override; |
48 | 47 |
49 scoped_refptr<base::SingleThreadTaskRunner> GetBackgroundTaskRunner() | 48 scoped_refptr<base::SingleThreadTaskRunner> GetBackgroundTaskRunner() |
50 override; | 49 override; |
51 | 50 |
52 private: | 51 private: |
53 void ReportMetricsImpl(const std::string& sync_username) override; | 52 void ReportMetricsImpl(const std::string& sync_username, |
| 53 bool custom_passphrase_sync_enabled) override; |
54 password_manager::PasswordStoreChangeList AddLoginImpl( | 54 password_manager::PasswordStoreChangeList AddLoginImpl( |
55 const autofill::PasswordForm& form) override; | 55 const autofill::PasswordForm& form) override; |
56 password_manager::PasswordStoreChangeList UpdateLoginImpl( | 56 password_manager::PasswordStoreChangeList UpdateLoginImpl( |
57 const autofill::PasswordForm& form) override; | 57 const autofill::PasswordForm& form) override; |
58 password_manager::PasswordStoreChangeList RemoveLoginImpl( | 58 password_manager::PasswordStoreChangeList RemoveLoginImpl( |
59 const autofill::PasswordForm& form) override; | 59 const autofill::PasswordForm& form) override; |
60 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( | 60 password_manager::PasswordStoreChangeList RemoveLoginsCreatedBetweenImpl( |
61 base::Time delete_begin, | 61 base::Time delete_begin, |
62 base::Time delete_end) override; | 62 base::Time delete_end) override; |
63 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( | 63 password_manager::PasswordStoreChangeList RemoveLoginsSyncedBetweenImpl( |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 scoped_ptr<crypto::AppleKeychain> keychain_; | 99 scoped_ptr<crypto::AppleKeychain> keychain_; |
100 scoped_ptr<password_manager::LoginDatabase> login_metadata_db_; | 100 scoped_ptr<password_manager::LoginDatabase> login_metadata_db_; |
101 | 101 |
102 // Thread that the synchronous methods are run on. | 102 // Thread that the synchronous methods are run on. |
103 scoped_ptr<base::Thread> thread_; | 103 scoped_ptr<base::Thread> thread_; |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); | 105 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); |
106 }; | 106 }; |
107 | 107 |
108 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 108 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ |
OLD | NEW |