| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 PasswordStoreDefault(LoginDatabase* login_db, | 24 PasswordStoreDefault(LoginDatabase* login_db, |
| 25 Profile* profile, | 25 Profile* profile, |
| 26 WebDataService* web_data_service); | 26 WebDataService* web_data_service); |
| 27 | 27 |
| 28 protected: | 28 protected: |
| 29 virtual ~PasswordStoreDefault(); | 29 virtual ~PasswordStoreDefault(); |
| 30 | 30 |
| 31 // Implements PasswordStore interface. | 31 // Implements PasswordStore interface. |
| 32 virtual void Shutdown() OVERRIDE; | 32 virtual void Shutdown() OVERRIDE; |
| 33 virtual void ReportMetricsImpl() OVERRIDE; | 33 virtual void ReportMetricsImpl() OVERRIDE; |
| 34 virtual void AddLoginImpl(const webkit_glue::PasswordForm& form) OVERRIDE; | 34 virtual void AddLoginImpl(const webkit::forms::PasswordForm& form) OVERRIDE; |
| 35 virtual void UpdateLoginImpl(const webkit_glue::PasswordForm& form) OVERRIDE; | 35 virtual void UpdateLoginImpl( |
| 36 virtual void RemoveLoginImpl(const webkit_glue::PasswordForm& form) OVERRIDE; | 36 const webkit::forms::PasswordForm& form) OVERRIDE; |
| 37 virtual void RemoveLoginImpl( |
| 38 const webkit::forms::PasswordForm& form) OVERRIDE; |
| 37 virtual void RemoveLoginsCreatedBetweenImpl( | 39 virtual void RemoveLoginsCreatedBetweenImpl( |
| 38 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; | 40 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; |
| 39 virtual void GetLoginsImpl(GetLoginsRequest* request, | 41 virtual void GetLoginsImpl(GetLoginsRequest* request, |
| 40 const webkit_glue::PasswordForm& form) OVERRIDE; | 42 const webkit::forms::PasswordForm& form) OVERRIDE; |
| 41 virtual void GetAutofillableLoginsImpl(GetLoginsRequest* request) OVERRIDE; | 43 virtual void GetAutofillableLoginsImpl(GetLoginsRequest* request) OVERRIDE; |
| 42 virtual void GetBlacklistLoginsImpl(GetLoginsRequest* request) OVERRIDE; | 44 virtual void GetBlacklistLoginsImpl(GetLoginsRequest* request) OVERRIDE; |
| 43 virtual bool FillAutofillableLogins( | 45 virtual bool FillAutofillableLogins( |
| 44 std::vector<webkit_glue::PasswordForm*>* forms) OVERRIDE; | 46 std::vector<webkit::forms::PasswordForm*>* forms) OVERRIDE; |
| 45 virtual bool FillBlacklistLogins( | 47 virtual bool FillBlacklistLogins( |
| 46 std::vector<webkit_glue::PasswordForm*>* forms) OVERRIDE; | 48 std::vector<webkit::forms::PasswordForm*>* forms) OVERRIDE; |
| 47 | 49 |
| 48 scoped_refptr<WebDataService> web_data_service_; | 50 scoped_refptr<WebDataService> web_data_service_; |
| 49 | 51 |
| 50 protected: | 52 protected: |
| 51 inline bool DeleteAndRecreateDatabaseFile() { | 53 inline bool DeleteAndRecreateDatabaseFile() { |
| 52 return login_db_->DeleteAndRecreateDatabaseFile(); | 54 return login_db_->DeleteAndRecreateDatabaseFile(); |
| 53 } | 55 } |
| 54 | 56 |
| 55 private: | 57 private: |
| 56 class MigrateHelper; | 58 class MigrateHelper; |
| 57 | 59 |
| 58 // Migrates logins from the WDS to the LoginDatabase. | 60 // Migrates logins from the WDS to the LoginDatabase. |
| 59 void MigrateIfNecessary(); | 61 void MigrateIfNecessary(); |
| 60 | 62 |
| 61 scoped_ptr<LoginDatabase> login_db_; | 63 scoped_ptr<LoginDatabase> login_db_; |
| 62 Profile* profile_; | 64 Profile* profile_; |
| 63 | 65 |
| 64 scoped_ptr<MigrateHelper> migrate_helper_; | 66 scoped_ptr<MigrateHelper> migrate_helper_; |
| 65 | 67 |
| 66 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); | 68 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ | 71 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
| OLD | NEW |