OLD | NEW |
| (Empty) |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN | |
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN | |
7 | |
8 #include <map> | |
9 #include <vector> | |
10 | |
11 #include "base/file_path.h" | |
12 #include "base/scoped_ptr.h" | |
13 #include "chrome/browser/password_manager/password_store.h" | |
14 #include "chrome/browser/password_manager/password_store_default.h" | |
15 #include "chrome/browser/webdata/web_data_service.h" | |
16 #include "chrome/browser/webdata/web_database.h" | |
17 | |
18 // Windows PasswordStore implementation that uses the default implementation, | |
19 // but also uses IE7 passwords if no others found. | |
20 class PasswordStoreWin : public PasswordStoreDefault { | |
21 public: | |
22 // FilePath specifies path to WebDatabase. | |
23 explicit PasswordStoreWin(WebDataService* web_data_service); | |
24 virtual ~PasswordStoreWin() {} | |
25 | |
26 private: | |
27 // See PasswordStoreDefault. | |
28 void OnWebDataServiceRequestDone(WebDataService::Handle h, | |
29 const WDTypedResult* result); | |
30 | |
31 // Gets logins from IE7 if no others are found. Also copies them into | |
32 // Chrome's WebDatabase so we don't need to look next time. | |
33 PasswordForm* GetIE7Result(const WDTypedResult* result, | |
34 const PasswordForm& form); | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(PasswordStoreWin); | |
37 }; | |
38 | |
39 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN | |
OLD | NEW |