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 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 // Takes ownership of |keychain| and |login_db|, both of which must be | 27 // Takes ownership of |keychain| and |login_db|, both of which must be |
28 // non-NULL. | 28 // non-NULL. |
29 PasswordStoreMac( | 29 PasswordStoreMac( |
30 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner, | 30 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner, |
31 scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner, | 31 scoped_refptr<base::SingleThreadTaskRunner> db_thread_runner, |
32 crypto::AppleKeychain* keychain, | 32 crypto::AppleKeychain* keychain, |
33 LoginDatabase* login_db); | 33 LoginDatabase* login_db); |
34 | 34 |
35 // Initializes |thread_|. | 35 // Initializes |thread_|. |
36 virtual bool Init() OVERRIDE; | 36 virtual bool Init( |
| 37 const syncer::SyncableService::StartSyncFlare& flare) OVERRIDE; |
37 | 38 |
38 protected: | 39 protected: |
39 virtual ~PasswordStoreMac(); | 40 virtual ~PasswordStoreMac(); |
40 | 41 |
41 virtual scoped_refptr<base::SingleThreadTaskRunner> | 42 virtual scoped_refptr<base::SingleThreadTaskRunner> |
42 GetBackgroundTaskRunner() OVERRIDE; | 43 GetBackgroundTaskRunner() OVERRIDE; |
43 | 44 |
44 private: | 45 private: |
45 virtual void ReportMetricsImpl() OVERRIDE; | 46 virtual void ReportMetricsImpl() OVERRIDE; |
46 virtual PasswordStoreChangeList AddLoginImpl( | 47 virtual PasswordStoreChangeList AddLoginImpl( |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 scoped_ptr<crypto::AppleKeychain> keychain_; | 89 scoped_ptr<crypto::AppleKeychain> keychain_; |
89 scoped_ptr<LoginDatabase> login_metadata_db_; | 90 scoped_ptr<LoginDatabase> login_metadata_db_; |
90 | 91 |
91 // Thread that the synchronous methods are run on. | 92 // Thread that the synchronous methods are run on. |
92 scoped_ptr<base::Thread> thread_; | 93 scoped_ptr<base::Thread> thread_; |
93 | 94 |
94 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); | 95 DISALLOW_COPY_AND_ASSIGN(PasswordStoreMac); |
95 }; | 96 }; |
96 | 97 |
97 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ | 98 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_MAC_H_ |
OLD | NEW |