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

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

Issue 8680040: Group forms-related files in webkit/glue in a forms/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + another build fix Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_glue::PasswordForm; 19 using webkit::forms::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(PasswordStore::GetLoginsCallback* callback) 28 explicit FormGetLoginsRequest(PasswordStore::GetLoginsCallback* callback)
29 : GetLoginsRequest(callback) {} 29 : GetLoginsRequest(callback) {}
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 PasswordStore::ForwardLoginsResult(request); 203 PasswordStore::ForwardLoginsResult(request);
204 } 204 }
205 } 205 }
206 206
207 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request, 207 void PasswordStoreWin::GetLoginsImpl(GetLoginsRequest* request,
208 const PasswordForm& form) { 208 const PasswordForm& form) {
209 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form); 209 static_cast<FormGetLoginsRequest*>(request)->SetLoginsRequestForm(form);
210 210
211 PasswordStoreDefault::GetLoginsImpl(request, form); 211 PasswordStoreDefault::GetLoginsImpl(request, form);
212 } 212 }
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