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/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 27 matching lines...) Expand all Loading... |
38 //////////////////////////////////////////////////////////////////////////////// | 38 //////////////////////////////////////////////////////////////////////////////// |
39 // | 39 // |
40 // WebDataService implementation. | 40 // WebDataService implementation. |
41 // | 41 // |
42 //////////////////////////////////////////////////////////////////////////////// | 42 //////////////////////////////////////////////////////////////////////////////// |
43 | 43 |
44 using base::Bind; | 44 using base::Bind; |
45 using base::Time; | 45 using base::Time; |
46 using webkit_glue::FormField; | 46 using webkit_glue::FormField; |
47 using webkit_glue::PasswordForm; | 47 using webkit_glue::PasswordForm; |
| 48 using webkit_glue::WebIntentServiceData; |
48 | 49 |
49 namespace { | 50 namespace { |
50 | 51 |
51 // A task used by WebDataService (for Sync mainly) to inform the | 52 // A task used by WebDataService (for Sync mainly) to inform the |
52 // PersonalDataManager living on the UI thread that it needs to refresh. | 53 // PersonalDataManager living on the UI thread that it needs to refresh. |
53 void NotifyOfMultipleAutofillChangesTask( | 54 void NotifyOfMultipleAutofillChangesTask( |
54 const scoped_refptr<WebDataService>& web_data_service) { | 55 const scoped_refptr<WebDataService>& web_data_service) { |
55 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 56 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
56 | 57 |
57 content::NotificationService::current()->Notify( | 58 content::NotificationService::current()->Notify( |
(...skipping 1385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1443 } | 1444 } |
1444 | 1445 |
1445 const WDTypedResult* WebDataService::WebDataRequest::GetResult() const { | 1446 const WDTypedResult* WebDataService::WebDataRequest::GetResult() const { |
1446 return result_; | 1447 return result_; |
1447 } | 1448 } |
1448 | 1449 |
1449 void WebDataService::WebDataRequest::RequestComplete() { | 1450 void WebDataService::WebDataRequest::RequestComplete() { |
1450 message_loop_->PostTask(FROM_HERE, Bind(&WebDataService::RequestCompleted, | 1451 message_loop_->PostTask(FROM_HERE, Bind(&WebDataService::RequestCompleted, |
1451 service_.get(), handle_)); | 1452 service_.get(), handle_)); |
1452 } | 1453 } |
OLD | NEW |