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