| 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_X_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_vector.h" | 14 #include "base/memory/scoped_vector.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "components/password_manager/core/browser/password_store_default.h" | 16 #include "components/password_manager/core/browser/password_store_default.h" |
| 17 | 17 |
| 18 class PrefService; | |
| 19 | |
| 20 namespace user_prefs { | |
| 21 class PrefRegistrySyncable; | |
| 22 } | |
| 23 | |
| 24 namespace password_manager { | 18 namespace password_manager { |
| 25 class LoginDatabase; | 19 class LoginDatabase; |
| 26 } | 20 } |
| 27 | 21 |
| 28 // PasswordStoreX is used on Linux and other non-Windows, non-Mac OS X | 22 // PasswordStoreX is used on Linux and other non-Windows, non-Mac OS X |
| 29 // operating systems. It uses a "native backend" to actually store the password | 23 // operating systems. It uses a "native backend" to actually store the password |
| 30 // data when such a backend is available, and otherwise falls back to using the | 24 // data when such a backend is available, and otherwise falls back to using the |
| 31 // login database like PasswordStoreDefault. It also handles automatically | 25 // login database like PasswordStoreDefault. It also handles automatically |
| 32 // migrating password data to a native backend from the login database. | 26 // migrating password data to a native backend from the login database. |
| 33 // | 27 // |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // Whether we should allow falling back to the default store. If there is | 144 // Whether we should allow falling back to the default store. If there is |
| 151 // nothing to migrate, then the first attempt to use the native store will | 145 // nothing to migrate, then the first attempt to use the native store will |
| 152 // be the first time we try to use it and we should allow falling back. If | 146 // be the first time we try to use it and we should allow falling back. If |
| 153 // we have migrated successfully, then we do not allow falling back. | 147 // we have migrated successfully, then we do not allow falling back. |
| 154 bool allow_fallback_; | 148 bool allow_fallback_; |
| 155 | 149 |
| 156 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); | 150 DISALLOW_COPY_AND_ASSIGN(PasswordStoreX); |
| 157 }; | 151 }; |
| 158 | 152 |
| 159 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ | 153 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_X_H_ |
| OLD | NEW |