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

Side by Side Diff: chrome/browser/password_manager/password_store.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.h" 5 #include "chrome/browser/password_manager/password_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "chrome/browser/password_manager/password_store_consumer.h" 11 #include "chrome/browser/password_manager/password_store_consumer.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "webkit/forms/password_form.h" 13 #include "content/public/common/password_form.h"
14 14
15 using content::BrowserThread; 15 using content::BrowserThread;
16 using std::vector; 16 using std::vector;
17 using webkit::forms::PasswordForm; 17 using content::PasswordForm;
18 18
19 PasswordStore::GetLoginsRequest::GetLoginsRequest( 19 PasswordStore::GetLoginsRequest::GetLoginsRequest(
20 const GetLoginsCallback& callback) 20 const GetLoginsCallback& callback)
21 : CancelableRequest1<GetLoginsCallback, 21 : CancelableRequest1<GetLoginsCallback,
22 std::vector<PasswordForm*> >(callback) { 22 std::vector<PasswordForm*> >(callback) {
23 } 23 }
24 24
25 void PasswordStore::GetLoginsRequest::ApplyIgnoreLoginsCutoff() { 25 void PasswordStore::GetLoginsRequest::ApplyIgnoreLoginsCutoff() {
26 if (!ignore_logins_cutoff_.is_null()) { 26 if (!ignore_logins_cutoff_.is_null()) {
27 // Count down rather than up since we may be deleting elements. 27 // Count down rather than up since we may be deleting elements.
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 #endif // !defined(OS_MACOSX) 173 #endif // !defined(OS_MACOSX)
174 BrowserThread::PostTask( 174 BrowserThread::PostTask(
175 BrowserThread::UI, FROM_HERE, 175 BrowserThread::UI, FROM_HERE,
176 base::Bind(&PasswordStore::NotifyLoginsChanged, this)); 176 base::Bind(&PasswordStore::NotifyLoginsChanged, this));
177 } 177 }
178 178
179 void PasswordStore::NotifyLoginsChanged() { 179 void PasswordStore::NotifyLoginsChanged() {
180 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 180 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
181 FOR_EACH_OBSERVER(Observer, observers_, OnLoginsChanged()); 181 FOR_EACH_OBSERVER(Observer, observers_, OnLoginsChanged());
182 } 182 }
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_store.h ('k') | chrome/browser/password_manager/password_store_change.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698