| 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 #include "chrome/browser/password_manager/password_store_win.h" | 5 #include "chrome/browser/password_manager/password_store_win.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/password_manager/ie7_password.h" | |
| 15 #include "chrome/browser/password_manager/password_manager.h" | 14 #include "chrome/browser/password_manager/password_manager.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/webdata/web_data_service.h" | 16 #include "chrome/browser/webdata/web_data_service.h" |
| 17 #include "components/webdata/encryptor/ie7_password.h" |
| 18 | 18 |
| 19 using content::BrowserThread; | 19 using content::BrowserThread; |
| 20 using content::PasswordForm; | 20 using content::PasswordForm; |
| 21 | 21 |
| 22 // Handles requests to WebDataService. | 22 // Handles requests to WebDataService. |
| 23 class PasswordStoreWin::DBHandler : public WebDataServiceConsumer { | 23 class PasswordStoreWin::DBHandler : public WebDataServiceConsumer { |
| 24 public: | 24 public: |
| 25 DBHandler(WebDataService* web_data_service, | 25 DBHandler(WebDataService* web_data_service, |
| 26 PasswordStoreWin* password_store) | 26 PasswordStoreWin* password_store) |
| 27 : web_data_service_(web_data_service), | 27 : web_data_service_(web_data_service), |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 } | 197 } |
| 198 | 198 |
| 199 void PasswordStoreWin::GetLoginsImpl( | 199 void PasswordStoreWin::GetLoginsImpl( |
| 200 const PasswordForm& form, | 200 const PasswordForm& form, |
| 201 const ConsumerCallbackRunner& callback_runner) { | 201 const ConsumerCallbackRunner& callback_runner) { |
| 202 ConsumerCallbackRunner get_ie7_login = | 202 ConsumerCallbackRunner get_ie7_login = |
| 203 base::Bind(&PasswordStoreWin::GetIE7LoginIfNecessary, | 203 base::Bind(&PasswordStoreWin::GetIE7LoginIfNecessary, |
| 204 this, form, callback_runner); | 204 this, form, callback_runner); |
| 205 PasswordStoreDefault::GetLoginsImpl(form, get_ie7_login); | 205 PasswordStoreDefault::GetLoginsImpl(form, get_ie7_login); |
| 206 } | 206 } |
| OLD | NEW |