Chromium Code Reviews| 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_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" |
| 11 | 11 |
| 12 class LoginDatabase; | 12 class LoginDatabase; |
| 13 class Profile; | 13 class Profile; |
| 14 class WebDataService; | 14 class WebDataService; |
| 15 | 15 |
| 16 namespace webkit { | 16 namespace webkit { |
| 17 namespace forms { | 17 namespace forms { |
| 18 struct PasswordForm; | 18 struct PasswordForm; |
| 19 } | 19 } |
| 20 } | 20 } |
| 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 // WebDataService is only used for IE7 password fetching; we no longer migrate |
| 27 // our own password data from it as it's been a very long time since we stored | |
| 28 // it there. | |
|
stuartmorgan
2012/04/26 08:06:13
I'd eliminate the historical note, and just say "W
Mike Mammarella
2012/04/26 18:07:33
Done.
| |
| 27 PasswordStoreWin(LoginDatabase* login_database, | 29 PasswordStoreWin(LoginDatabase* login_database, |
| 28 Profile* profile, | 30 Profile* profile, |
| 29 WebDataService* web_data_service); | 31 WebDataService* web_data_service); |
| 30 | 32 |
| 31 // RefcountedProfileKeyedService: | 33 // RefcountedProfileKeyedService: |
| 32 virtual void ShutdownOnUIThread() OVERRIDE; | 34 virtual void ShutdownOnUIThread() OVERRIDE; |
| 33 | 35 |
| 34 private: | 36 private: |
| 35 class DBHandler; | 37 class DBHandler; |
| 36 | 38 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 48 // Overridden so that we can save the form for later use. | 50 // Overridden so that we can save the form for later use. |
| 49 virtual void GetLoginsImpl(GetLoginsRequest* request, | 51 virtual void GetLoginsImpl(GetLoginsRequest* request, |
| 50 const webkit::forms::PasswordForm& form) OVERRIDE; | 52 const webkit::forms::PasswordForm& form) OVERRIDE; |
| 51 | 53 |
| 52 scoped_ptr<DBHandler> db_handler_; | 54 scoped_ptr<DBHandler> db_handler_; |
| 53 | 55 |
| 54 DISALLOW_COPY_AND_ASSIGN(PasswordStoreWin); | 56 DISALLOW_COPY_AND_ASSIGN(PasswordStoreWin); |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ | 59 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_ |
| OLD | NEW |