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/webdata/web_data_service.h" | 5 #include "chrome/browser/webdata/web_data_service.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util-inl.h" |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "chrome/browser/autofill/autofill_profile.h" | 11 #include "chrome/browser/autofill/autofill_profile.h" |
12 #include "chrome/browser/autofill/credit_card.h" | 12 #include "chrome/browser/autofill/credit_card.h" |
13 #include "chrome/browser/search_engines/template_url.h" | 13 #include "chrome/browser/search_engines/template_url.h" |
14 #include "chrome/browser/webdata/autofill_change.h" | 14 #include "chrome/browser/webdata/autofill_change.h" |
15 #include "chrome/browser/webdata/autofill_entry.h" | 15 #include "chrome/browser/webdata/autofill_entry.h" |
16 #include "chrome/browser/webdata/web_database.h" | 16 #include "chrome/browser/webdata/web_database.h" |
17 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
18 #include "chrome/common/notification_details.h" | 18 #include "content/common/notification_details.h" |
19 #include "chrome/common/notification_service.h" | 19 #include "content/common/notification_service.h" |
20 #include "chrome/common/notification_source.h" | 20 #include "content/common/notification_source.h" |
21 #include "chrome/common/notification_type.h" | 21 #include "content/common/notification_type.h" |
22 #include "grit/chromium_strings.h" | 22 #include "grit/chromium_strings.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
25 #include "webkit/glue/password_form.h" | 25 #include "webkit/glue/password_form.h" |
26 | 26 |
27 //////////////////////////////////////////////////////////////////////////////// | 27 //////////////////////////////////////////////////////////////////////////////// |
28 // | 28 // |
29 // WebDataService implementation. | 29 // WebDataService implementation. |
30 // | 30 // |
31 //////////////////////////////////////////////////////////////////////////////// | 31 //////////////////////////////////////////////////////////////////////////////// |
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1236 return result_; | 1236 return result_; |
1237 } | 1237 } |
1238 | 1238 |
1239 void WebDataService::WebDataRequest::RequestComplete() { | 1239 void WebDataService::WebDataRequest::RequestComplete() { |
1240 WebDataService* s = service_; | 1240 WebDataService* s = service_; |
1241 Task* t = NewRunnableMethod(s, | 1241 Task* t = NewRunnableMethod(s, |
1242 &WebDataService::RequestCompleted, | 1242 &WebDataService::RequestCompleted, |
1243 handle_); | 1243 handle_); |
1244 message_loop_->PostTask(FROM_HERE, t); | 1244 message_loop_->PostTask(FROM_HERE, t); |
1245 } | 1245 } |
OLD | NEW |