OLD | NEW |
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/webdata/web_data_service.h" | 5 #include "chrome/browser/webdata/web_data_service.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "chrome/browser/webdata/web_database.h" | 27 #include "chrome/browser/webdata/web_database.h" |
28 #include "chrome/browser/webdata/web_intents_table.h" | 28 #include "chrome/browser/webdata/web_intents_table.h" |
29 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
30 #include "chrome/common/chrome_notification_types.h" | 30 #include "chrome/common/chrome_notification_types.h" |
31 #ifdef DEBUG | 31 #ifdef DEBUG |
32 #include "content/public/browser/browser_thread.h" | 32 #include "content/public/browser/browser_thread.h" |
33 #endif | 33 #endif |
34 #include "content/public/browser/notification_details.h" | 34 #include "content/public/browser/notification_details.h" |
35 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
36 #include "content/public/browser/notification_source.h" | 36 #include "content/public/browser/notification_source.h" |
| 37 #include "content/public/common/form_field.h" |
37 #include "grit/chromium_strings.h" | 38 #include "grit/chromium_strings.h" |
38 #include "grit/generated_resources.h" | 39 #include "grit/generated_resources.h" |
39 #include "third_party/skia/include/core/SkBitmap.h" | 40 #include "third_party/skia/include/core/SkBitmap.h" |
40 #include "webkit/forms/form_field.h" | |
41 | 41 |
42 //////////////////////////////////////////////////////////////////////////////// | 42 //////////////////////////////////////////////////////////////////////////////// |
43 // | 43 // |
44 // WebDataService implementation. | 44 // WebDataService implementation. |
45 // | 45 // |
46 //////////////////////////////////////////////////////////////////////////////// | 46 //////////////////////////////////////////////////////////////////////////////// |
47 | 47 |
48 using base::Bind; | 48 using base::Bind; |
49 using base::Time; | 49 using base::Time; |
50 using content::BrowserThread; | 50 using content::BrowserThread; |
51 using webkit::forms::FormField; | 51 using content::FormField; |
52 using webkit_glue::WebIntentServiceData; | 52 using webkit_glue::WebIntentServiceData; |
53 | 53 |
54 namespace { | 54 namespace { |
55 | 55 |
56 // A task used by WebDataService (for Sync mainly) to inform the | 56 // A task used by WebDataService (for Sync mainly) to inform the |
57 // PersonalDataManager living on the UI thread that it needs to refresh. | 57 // PersonalDataManager living on the UI thread that it needs to refresh. |
58 void NotifyOfMultipleAutofillChangesTask( | 58 void NotifyOfMultipleAutofillChangesTask( |
59 const scoped_refptr<WebDataService>& web_data_service) { | 59 const scoped_refptr<WebDataService>& web_data_service) { |
60 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 60 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
61 | 61 |
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 } | 1515 } |
1516 | 1516 |
1517 const WDTypedResult* WebDataService::WebDataRequest::GetResult() const { | 1517 const WDTypedResult* WebDataService::WebDataRequest::GetResult() const { |
1518 return result_; | 1518 return result_; |
1519 } | 1519 } |
1520 | 1520 |
1521 void WebDataService::WebDataRequest::RequestComplete() { | 1521 void WebDataService::WebDataRequest::RequestComplete() { |
1522 message_loop_->PostTask(FROM_HERE, Bind(&WebDataService::RequestCompleted, | 1522 message_loop_->PostTask(FROM_HERE, Bind(&WebDataService::RequestCompleted, |
1523 service_.get(), handle_)); | 1523 service_.get(), handle_)); |
1524 } | 1524 } |
OLD | NEW |