| 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_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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 Profile* profile); | 22 Profile* profile); |
| 23 | 23 |
| 24 protected: | 24 protected: |
| 25 virtual ~PasswordStoreDefault(); | 25 virtual ~PasswordStoreDefault(); |
| 26 | 26 |
| 27 // Implements RefCountedProfileKeyedService. | 27 // Implements RefCountedProfileKeyedService. |
| 28 virtual void ShutdownOnUIThread() OVERRIDE; | 28 virtual void ShutdownOnUIThread() OVERRIDE; |
| 29 | 29 |
| 30 // Implements PasswordStore interface. | 30 // Implements PasswordStore interface. |
| 31 virtual void ReportMetricsImpl() OVERRIDE; | 31 virtual void ReportMetricsImpl() OVERRIDE; |
| 32 virtual void AddLoginImpl(const webkit::forms::PasswordForm& form) OVERRIDE; | 32 virtual void AddLoginImpl(const content::PasswordForm& form) OVERRIDE; |
| 33 virtual void UpdateLoginImpl( | 33 virtual void UpdateLoginImpl( |
| 34 const webkit::forms::PasswordForm& form) OVERRIDE; | 34 const content::PasswordForm& form) OVERRIDE; |
| 35 virtual void RemoveLoginImpl( | 35 virtual void RemoveLoginImpl( |
| 36 const webkit::forms::PasswordForm& form) OVERRIDE; | 36 const content::PasswordForm& form) OVERRIDE; |
| 37 virtual void RemoveLoginsCreatedBetweenImpl( | 37 virtual void RemoveLoginsCreatedBetweenImpl( |
| 38 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; | 38 const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE; |
| 39 virtual void GetLoginsImpl(GetLoginsRequest* request, | 39 virtual void GetLoginsImpl(GetLoginsRequest* request, |
| 40 const webkit::forms::PasswordForm& form) OVERRIDE; | 40 const content::PasswordForm& form) OVERRIDE; |
| 41 virtual void GetAutofillableLoginsImpl(GetLoginsRequest* request) OVERRIDE; | 41 virtual void GetAutofillableLoginsImpl(GetLoginsRequest* request) OVERRIDE; |
| 42 virtual void GetBlacklistLoginsImpl(GetLoginsRequest* request) OVERRIDE; | 42 virtual void GetBlacklistLoginsImpl(GetLoginsRequest* request) OVERRIDE; |
| 43 virtual bool FillAutofillableLogins( | 43 virtual bool FillAutofillableLogins( |
| 44 std::vector<webkit::forms::PasswordForm*>* forms) OVERRIDE; | 44 std::vector<content::PasswordForm*>* forms) OVERRIDE; |
| 45 virtual bool FillBlacklistLogins( | 45 virtual bool FillBlacklistLogins( |
| 46 std::vector<webkit::forms::PasswordForm*>* forms) OVERRIDE; | 46 std::vector<content::PasswordForm*>* forms) OVERRIDE; |
| 47 | 47 |
| 48 protected: | 48 protected: |
| 49 inline bool DeleteAndRecreateDatabaseFile() { | 49 inline bool DeleteAndRecreateDatabaseFile() { |
| 50 return login_db_->DeleteAndRecreateDatabaseFile(); | 50 return login_db_->DeleteAndRecreateDatabaseFile(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 scoped_ptr<LoginDatabase> login_db_; | 54 scoped_ptr<LoginDatabase> login_db_; |
| 55 Profile* profile_; | 55 Profile* profile_; |
| 56 | 56 |
| 57 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); | 57 DISALLOW_COPY_AND_ASSIGN(PasswordStoreDefault); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ | 60 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_DEFAULT_H_ |
| OLD | NEW |