| 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 25 matching lines...) Expand all Loading... |
| 36 void RemoveLoginImpl(const webkit_glue::PasswordForm& form); | 36 void RemoveLoginImpl(const webkit_glue::PasswordForm& form); |
| 37 void RemoveLoginsCreatedBetweenImpl(const base::Time& delete_begin, | 37 void RemoveLoginsCreatedBetweenImpl(const base::Time& delete_begin, |
| 38 const base::Time& delete_end); | 38 const base::Time& delete_end); |
| 39 void GetLoginsImpl(GetLoginsRequest* request, | 39 void GetLoginsImpl(GetLoginsRequest* request, |
| 40 const webkit_glue::PasswordForm& form); | 40 const webkit_glue::PasswordForm& form); |
| 41 void GetAutofillableLoginsImpl(GetLoginsRequest* request); | 41 void GetAutofillableLoginsImpl(GetLoginsRequest* request); |
| 42 void GetBlacklistLoginsImpl(GetLoginsRequest* request); | 42 void GetBlacklistLoginsImpl(GetLoginsRequest* request); |
| 43 | 43 |
| 44 scoped_refptr<WebDataService> web_data_service_; | 44 scoped_refptr<WebDataService> web_data_service_; |
| 45 | 45 |
| 46 // Implements the WebDataService consumer interface. |
| 47 void OnWebDataServiceRequestDone(WebDataService::Handle handle, |
| 48 const WDTypedResult *result); |
| 49 |
| 46 private: | 50 private: |
| 47 // Migrates logins from the WDS to the LoginDatabase. | 51 // Migrates logins from the WDS to the LoginDatabase. |
| 48 void MigrateIfNecessary(); | 52 void MigrateIfNecessary(); |
| 49 | 53 |
| 50 // Implements the WebDataService consumer interface. | |
| 51 void OnWebDataServiceRequestDone(WebDataService::Handle handle, | |
| 52 const WDTypedResult *result); | |
| 53 | |
| 54 scoped_ptr<LoginDatabase> login_db_; | 54 scoped_ptr<LoginDatabase> login_db_; |
| 55 Profile* profile_; | 55 Profile* profile_; |
| 56 | 56 |
| 57 std::set<WebDataService::Handle> handles_; | 57 std::set<WebDataService::Handle> handles_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); | 59 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ | 62 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
| OLD | NEW |