OLD | NEW |
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.h" | 5 #include "chrome/browser/password_manager/password_store.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/stl_util-inl.h" | 9 #include "base/stl_util.h" |
10 #include "base/task.h" | 10 #include "base/task.h" |
11 #include "chrome/browser/password_manager/password_store_consumer.h" | 11 #include "chrome/browser/password_manager/password_store_consumer.h" |
12 #include "content/browser/browser_thread.h" | 12 #include "content/browser/browser_thread.h" |
13 #include "webkit/glue/password_form.h" | 13 #include "webkit/glue/password_form.h" |
14 | 14 |
15 using std::vector; | 15 using std::vector; |
16 using webkit_glue::PasswordForm; | 16 using webkit_glue::PasswordForm; |
17 | 17 |
18 PasswordStore::GetLoginsRequest::GetLoginsRequest(GetLoginsCallback* callback) | 18 PasswordStore::GetLoginsRequest::GetLoginsRequest(GetLoginsCallback* callback) |
19 : CancelableRequest1<GetLoginsCallback, | 19 : CancelableRequest1<GetLoginsCallback, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 BrowserThread::PostTask( | 149 BrowserThread::PostTask( |
150 BrowserThread::UI, FROM_HERE, | 150 BrowserThread::UI, FROM_HERE, |
151 NewRunnableMethod(this, &PasswordStore::NotifyLoginsChanged)); | 151 NewRunnableMethod(this, &PasswordStore::NotifyLoginsChanged)); |
152 } | 152 } |
153 | 153 |
154 void PasswordStore::NotifyLoginsChanged() { | 154 void PasswordStore::NotifyLoginsChanged() { |
155 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 155 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
156 FOR_EACH_OBSERVER(Observer, observers_, OnLoginsChanged()); | 156 FOR_EACH_OBSERVER(Observer, observers_, OnLoginsChanged()); |
157 } | 157 } |
OLD | NEW |