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

Side by Side Diff: chrome/browser/password_manager/password_store_win.cc

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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 unified diff | Download patch
OLDNEW
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/string_util.h" 11 #include "base/string_util.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/password_manager/ie7_password.h" 13 #include "chrome/browser/password_manager/ie7_password.h"
14 #include "chrome/browser/password_manager/password_manager.h" 14 #include "chrome/browser/password_manager/password_manager.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/webdata/web_data_service.h" 16 #include "chrome/browser/webdata/web_data_service.h"
17 17
18 using content::BrowserThread; 18 using content::BrowserThread;
19 using webkit::forms::PasswordForm; 19 using content::PasswordForm;
20 20
21 namespace { 21 namespace {
22 // Subclass GetLoginsRequest in order to hold a copy of the form information 22 // Subclass GetLoginsRequest in order to hold a copy of the form information
23 // from the GetLogins request for the ForwardLoginsResult call. Note that the 23 // from the GetLogins request for the ForwardLoginsResult call. Note that the
24 // other calls such as GetBlacklistLogins and GetAutofillableLogins, the form is 24 // other calls such as GetBlacklistLogins and GetAutofillableLogins, the form is
25 // not set. 25 // not set.
26 class FormGetLoginsRequest : public PasswordStore::GetLoginsRequest { 26 class FormGetLoginsRequest : public PasswordStore::GetLoginsRequest {
27 public: 27 public:
28 explicit FormGetLoginsRequest( 28 explicit FormGetLoginsRequest(
29 const PasswordStore::GetLoginsCallback& callback) 29 const PasswordStore::GetLoginsCallback& callback)
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 PasswordStore::ForwardLoginsResult(request); 210 PasswordStore::ForwardLoginsResult(request);
211 } 211 }
212 } 212 }
213 213
214 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request, 214 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request,
215 const PasswordForm& form) { 215 const PasswordForm& form) {
216 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form); 216 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form);
217 217
218 PasswordStoreDefault::GetLoginsImpl(request, form); 218 PasswordStoreDefault::GetLoginsImpl(request, form);
219 } 219 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store_win.h ('k') | chrome/browser/password_manager/password_store_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698