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

Side by Side Diff: chrome/browser/webdata/web_data_service.cc

Issue 8417043: Add webkit_glue namespace. Improve some variable and test names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge error Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_data_service.h ('k') | chrome/browser/webdata/web_data_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698