OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PROXY_MAC_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_PROXY_MAC_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_PROXY_MAC_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_PROXY_MAC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 // SimplePasswordStoreMac and instantiating a correct backend according to the | 30 // SimplePasswordStoreMac and instantiating a correct backend according to the |
31 // user's state. | 31 // user's state. |
32 class PasswordStoreProxyMac : public password_manager::PasswordStore { | 32 class PasswordStoreProxyMac : public password_manager::PasswordStore { |
33 public: | 33 public: |
34 PasswordStoreProxyMac( | 34 PasswordStoreProxyMac( |
35 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner, | 35 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner, |
36 std::unique_ptr<crypto::AppleKeychain> keychain, | 36 std::unique_ptr<crypto::AppleKeychain> keychain, |
37 std::unique_ptr<password_manager::LoginDatabase> login_db, | 37 std::unique_ptr<password_manager::LoginDatabase> login_db, |
38 PrefService* prefs); | 38 PrefService* prefs); |
39 | 39 |
40 bool Init(const syncer::SyncableService::StartSyncFlare& flare) override; | 40 bool Init(const syncer::SyncableService::StartSyncFlare& flare, |
| 41 PrefService* prefs) override; |
41 void ShutdownOnUIThread() override; | 42 void ShutdownOnUIThread() override; |
42 scoped_refptr<base::SingleThreadTaskRunner> GetBackgroundTaskRunner() | 43 scoped_refptr<base::SingleThreadTaskRunner> GetBackgroundTaskRunner() |
43 override; | 44 override; |
44 | 45 |
45 #if defined(UNIT_TEST) | 46 #if defined(UNIT_TEST) |
46 password_manager::LoginDatabase* login_metadata_db() { | 47 password_manager::LoginDatabase* login_metadata_db() { |
47 return login_metadata_db_.get(); | 48 return login_metadata_db_.get(); |
48 } | 49 } |
49 | 50 |
50 crypto::AppleKeychain* keychain() { | 51 crypto::AppleKeychain* keychain() { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // them. If this is the case then Shutdown() flushes the tasks after stopping | 127 // them. If this is the case then Shutdown() flushes the tasks after stopping |
127 // the background thread. | 128 // the background thread. |
128 // After InitOnBackgroundThread is run once, the queue may not be modified on | 129 // After InitOnBackgroundThread is run once, the queue may not be modified on |
129 // the background thread any more. | 130 // the background thread any more. |
130 std::vector<base::Closure> pending_ui_tasks_; | 131 std::vector<base::Closure> pending_ui_tasks_; |
131 | 132 |
132 DISALLOW_COPY_AND_ASSIGN(PasswordStoreProxyMac); | 133 DISALLOW_COPY_AND_ASSIGN(PasswordStoreProxyMac); |
133 }; | 134 }; |
134 | 135 |
135 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_PROXY_MAC_H_ | 136 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_PROXY_MAC_H_ |
OLD | NEW |