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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_
6 #define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/password_manager/password_store_default.h"
19 // Windows PasswordStore implementation that uses the default implementation,
20 // but also uses IE7 passwords if no others found.
21 class PasswordStoreWin
: public PasswordStoreDefault
{
23 // WebDataService is only used for IE7 password fetching.
24 PasswordStoreWin(LoginDatabase
* login_database
,
26 WebDataService
* web_data_service
);
28 // RefcountedBrowserContextKeyedService:
29 virtual void ShutdownOnUIThread() OVERRIDE
;
34 virtual ~PasswordStoreWin();
36 // Invoked from Shutdown, but run on the DB thread.
37 void ShutdownOnDBThread();
39 virtual void GetLoginsImpl(
40 const autofill::PasswordForm
& form
,
41 AuthorizationPromptPolicy prompt_policy
,
42 const ConsumerCallbackRunner
& callback_runner
) OVERRIDE
;
44 void GetIE7LoginIfNecessary(
45 const autofill::PasswordForm
& form
,
46 const ConsumerCallbackRunner
& callback_runner
,
47 const std::vector
<autofill::PasswordForm
*>& matched_forms
);
49 scoped_ptr
<DBHandler
> db_handler_
;
51 DISALLOW_COPY_AND_ASSIGN(PasswordStoreWin
);
54 #endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN_H_