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" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 // Gets logins from IE7 if no others are found. Also copies them into | 57 // Gets logins from IE7 if no others are found. Also copies them into |
58 // Chrome's WebDatabase so we don't need to look next time. | 58 // Chrome's WebDatabase so we don't need to look next time. |
59 std::vector<autofill::PasswordForm*> GetIE7Results( | 59 std::vector<autofill::PasswordForm*> GetIE7Results( |
60 const WDTypedResult* result, | 60 const WDTypedResult* result, |
61 const PasswordForm& form); | 61 const PasswordForm& form); |
62 | 62 |
63 // WebDataServiceConsumer implementation. | 63 // WebDataServiceConsumer implementation. |
64 virtual void OnWebDataServiceRequestDone( | 64 virtual void OnWebDataServiceRequestDone( |
65 PasswordWebDataService::Handle handle, | 65 PasswordWebDataService::Handle handle, |
66 const WDTypedResult* result) OVERRIDE; | 66 const WDTypedResult* result) override; |
67 | 67 |
68 scoped_refptr<PasswordWebDataService> web_data_service_; | 68 scoped_refptr<PasswordWebDataService> web_data_service_; |
69 | 69 |
70 // This creates a cycle between us and PasswordStore. The cycle is broken | 70 // This creates a cycle between us and PasswordStore. The cycle is broken |
71 // from PasswordStoreWin::Shutdown, which deletes us. | 71 // from PasswordStoreWin::Shutdown, which deletes us. |
72 scoped_refptr<PasswordStoreWin> password_store_; | 72 scoped_refptr<PasswordStoreWin> password_store_; |
73 | 73 |
74 PendingRequestMap pending_requests_; | 74 PendingRequestMap pending_requests_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(DBHandler); | 76 DISALLOW_COPY_AND_ASSIGN(DBHandler); |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 207 |
208 void PasswordStoreWin::GetLoginsImpl( | 208 void PasswordStoreWin::GetLoginsImpl( |
209 const PasswordForm& form, | 209 const PasswordForm& form, |
210 AuthorizationPromptPolicy prompt_policy, | 210 AuthorizationPromptPolicy prompt_policy, |
211 const ConsumerCallbackRunner& callback_runner) { | 211 const ConsumerCallbackRunner& callback_runner) { |
212 ConsumerCallbackRunner get_ie7_login = | 212 ConsumerCallbackRunner get_ie7_login = |
213 base::Bind(&PasswordStoreWin::GetIE7LoginIfNecessary, | 213 base::Bind(&PasswordStoreWin::GetIE7LoginIfNecessary, |
214 this, form, callback_runner); | 214 this, form, callback_runner); |
215 PasswordStoreDefault::GetLoginsImpl(form, prompt_policy, get_ie7_login); | 215 PasswordStoreDefault::GetLoginsImpl(form, prompt_policy, get_ie7_login); |
216 } | 216 } |
OLD | NEW |