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_SIMPLE_PASSWORD_STORE_MAC_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_SIMPLE_PASSWORD_STORE_MAC_H_ |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_SIMPLE_PASSWORD_STORE_MAC_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_SIMPLE_PASSWORD_STORE_MAC_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/single_thread_task_runner.h" |
9 #include "components/password_manager/core/browser/password_store_default.h" | 10 #include "components/password_manager/core/browser/password_store_default.h" |
10 | 11 |
11 class PrefService; | 12 class PrefService; |
12 | 13 |
13 // The same as PasswordStoreDefault but running on the dedicated thread. The | 14 // The same as PasswordStoreDefault but running on the dedicated thread. The |
14 // owner is responsible for the thread lifetime. | 15 // owner is responsible for the thread lifetime. |
15 class SimplePasswordStoreMac : public password_manager::PasswordStoreDefault { | 16 class SimplePasswordStoreMac : public password_manager::PasswordStoreDefault { |
16 public: | 17 public: |
17 // Passes the arguments to PasswordStoreDefault. |background_task_runner| and | 18 // Passes the arguments to PasswordStoreDefault. |background_task_runner| and |
18 // |login_db| can be overwritten later in InitWithTaskRunner(). | 19 // |login_db| can be overwritten later in InitWithTaskRunner(). |
(...skipping 15 matching lines...) Expand all Loading... |
34 ~SimplePasswordStoreMac() override; | 35 ~SimplePasswordStoreMac() override; |
35 | 36 |
36 private: | 37 private: |
37 bool Init(const syncer::SyncableService::StartSyncFlare& flare, | 38 bool Init(const syncer::SyncableService::StartSyncFlare& flare, |
38 PrefService* prefs) override; | 39 PrefService* prefs) override; |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(SimplePasswordStoreMac); | 41 DISALLOW_COPY_AND_ASSIGN(SimplePasswordStoreMac); |
41 }; | 42 }; |
42 | 43 |
43 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SIMPLE_PASSWORD_STORE_MAC_H_ | 44 #endif // CHROME_BROWSER_PASSWORD_MANAGER_SIMPLE_PASSWORD_STORE_MAC_H_ |
OLD | NEW |