| 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_WIN_H_ | 5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ |
| 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ | 6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/password_manager/password_store_default.h" | 10 #include "chrome/browser/password_manager/password_store_default.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // Windows PasswordStore implementation that uses the default implementation, | 22 // Windows PasswordStore implementation that uses the default implementation, |
| 23 // but also uses IE7 passwords if no others found. | 23 // but also uses IE7 passwords if no others found. |
| 24 class PasswordStoreWin : public PasswordStoreDefault { | 24 class PasswordStoreWin : public PasswordStoreDefault { |
| 25 public: | 25 public: |
| 26 // FilePath specifies path to WebDatabase. | 26 // FilePath specifies path to WebDatabase. |
| 27 PasswordStoreWin(LoginDatabase* login_database, | 27 PasswordStoreWin(LoginDatabase* login_database, |
| 28 Profile* profile, | 28 Profile* profile, |
| 29 WebDataService* web_data_service); | 29 WebDataService* web_data_service); |
| 30 | 30 |
| 31 // RefcountedProfileKeyedService: |
| 32 virtual void ShutdownOnUIThread() OVERRIDE; |
| 33 |
| 31 private: | 34 private: |
| 32 class DBHandler; | 35 class DBHandler; |
| 33 | 36 |
| 34 virtual ~PasswordStoreWin(); | 37 virtual ~PasswordStoreWin(); |
| 35 | 38 |
| 36 // Invoked from Shutdown, but run on the DB thread. | 39 // Invoked from Shutdown, but run on the DB thread. |
| 37 void ShutdownOnDBThread(); | 40 void ShutdownOnDBThread(); |
| 38 | 41 |
| 39 virtual GetLoginsRequest* NewGetLoginsRequest( | 42 virtual GetLoginsRequest* NewGetLoginsRequest( |
| 40 const GetLoginsCallback& callback) OVERRIDE; | 43 const GetLoginsCallback& callback) OVERRIDE; |
| 41 | 44 |
| 42 // See PasswordStoreDefault. | 45 // See PasswordStoreDefault. |
| 43 virtual void Shutdown() OVERRIDE; | |
| 44 virtual void ForwardLoginsResult(GetLoginsRequest* request) OVERRIDE; | 46 virtual void ForwardLoginsResult(GetLoginsRequest* request) OVERRIDE; |
| 45 | 47 |
| 46 // Overridden so that we can save the form for later use. | 48 // Overridden so that we can save the form for later use. |
| 47 virtual void GetLoginsImpl(GetLoginsRequest* request, | 49 virtual void GetLoginsImpl(GetLoginsRequest* request, |
| 48 const webkit::forms::PasswordForm& form) OVERRIDE; | 50 const webkit::forms::PasswordForm& form) OVERRIDE; |
| 49 | 51 |
| 50 scoped_ptr<DBHandler> db_handler_; | 52 scoped_ptr<DBHandler> db_handler_; |
| 51 | 53 |
| 52 DISALLOW_COPY_AND_ASSIGN(PasswordStoreWin); | 54 DISALLOW_COPY_AND_ASSIGN(PasswordStoreWin); |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ | 57 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ |
| OLD | NEW |