Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1260)

Unified Diff: chrome/browser/password_manager/password_store_win.h

Issue 114057: Re-land the password store work from bug 8205, with changes that should fix b... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/password_manager/password_store_win.h
===================================================================
--- chrome/browser/password_manager/password_store_win.h (revision 0)
+++ chrome/browser/password_manager/password_store_win.h (revision 0)
@@ -0,0 +1,39 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN
+#define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN
+
+#include <map>
+#include <vector>
+
+#include "base/file_path.h"
+#include "base/scoped_ptr.h"
+#include "chrome/browser/password_manager/password_store.h"
+#include "chrome/browser/password_manager/password_store_default.h"
+#include "chrome/browser/webdata/web_data_service.h"
+#include "chrome/browser/webdata/web_database.h"
+
+// Windows PasswordStore implementation that uses the default implementation,
+// but also uses IE7 passwords if no others found.
+class PasswordStoreWin : public PasswordStoreDefault {
+ public:
+ // FilePath specifies path to WebDatabase.
+ explicit PasswordStoreWin(WebDataService* web_data_service);
+ virtual ~PasswordStoreWin() {}
+
+ private:
+ // See PasswordStoreDefault.
+ void OnWebDataServiceRequestDone(WebDataService::Handle h,
+ const WDTypedResult* result);
+
+ // Gets logins from IE7 if no others are found. Also copies them into
+ // Chrome's WebDatabase so we don't need to look next time.
+ PasswordForm* GetIE7Result(const WDTypedResult* result,
+ const PasswordForm& form);
+
+ DISALLOW_COPY_AND_ASSIGN(PasswordStoreWin);
+};
+
+#endif // CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_STORE_WIN
« no previous file with comments | « chrome/browser/password_manager/password_store_kwallet.cc ('k') | chrome/browser/password_manager/password_store_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698