| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_DEFAULT_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 std::vector<webkit_glue::PasswordForm*>* forms); | 43 std::vector<webkit_glue::PasswordForm*>* forms); |
| 44 bool FillBlacklistLogins( | 44 bool FillBlacklistLogins( |
| 45 std::vector<webkit_glue::PasswordForm*>* forms); | 45 std::vector<webkit_glue::PasswordForm*>* forms); |
| 46 | 46 |
| 47 scoped_refptr<WebDataService> web_data_service_; | 47 scoped_refptr<WebDataService> web_data_service_; |
| 48 | 48 |
| 49 // Implements the WebDataService consumer interface. | 49 // Implements the WebDataService consumer interface. |
| 50 void OnWebDataServiceRequestDone(WebDataService::Handle handle, | 50 void OnWebDataServiceRequestDone(WebDataService::Handle handle, |
| 51 const WDTypedResult *result); | 51 const WDTypedResult *result); |
| 52 | 52 |
| 53 protected: |
| 54 inline bool DeleteAndRecreateDatabaseFile() { |
| 55 return login_db_->DeleteAndRecreateDatabaseFile(); |
| 56 } |
| 57 |
| 53 private: | 58 private: |
| 54 // Migrates logins from the WDS to the LoginDatabase. | 59 // Migrates logins from the WDS to the LoginDatabase. |
| 55 void MigrateIfNecessary(); | 60 void MigrateIfNecessary(); |
| 56 | 61 |
| 57 scoped_ptr<LoginDatabase> login_db_; | 62 scoped_ptr<LoginDatabase> login_db_; |
| 58 Profile* profile_; | 63 Profile* profile_; |
| 59 | 64 |
| 60 std::set<WebDataService::Handle> handles_; | 65 std::set<WebDataService::Handle> handles_; |
| 61 | 66 |
| 62 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); | 67 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); |
| 63 }; | 68 }; |
| 64 | 69 |
| 65 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ | 70 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
| OLD | NEW |