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

Side by Side Diff: components/webdata/common/web_data_request_manager.cc

Issue 16092013: Use base::MessageLoop in more files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again, sigh Created 7 years, 6 months 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "components/webdata/common/web_data_request_manager.h" 5 #include "components/webdata/common/web_data_request_manager.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 10
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 WebDataServiceBase::Handle WebDataRequest::GetHandle() const { 37 WebDataServiceBase::Handle WebDataRequest::GetHandle() const {
38 return handle_; 38 return handle_;
39 } 39 }
40 40
41 WebDataServiceConsumer* WebDataRequest::GetConsumer() const { 41 WebDataServiceConsumer* WebDataRequest::GetConsumer() const {
42 return consumer_; 42 return consumer_;
43 } 43 }
44 44
45 MessageLoop* WebDataRequest::GetMessageLoop() const { 45 base::MessageLoop* WebDataRequest::GetMessageLoop() const {
46 return message_loop_; 46 return message_loop_;
47 } 47 }
48 48
49 bool WebDataRequest::IsCancelled() const { 49 bool WebDataRequest::IsCancelled() const {
50 base::AutoLock l(cancel_lock_); 50 base::AutoLock l(cancel_lock_);
51 return cancelled_; 51 return cancelled_;
52 } 52 }
53 53
54 void WebDataRequest::Cancel() { 54 void WebDataRequest::Cancel() {
55 base::AutoLock l(cancel_lock_); 55 base::AutoLock l(cancel_lock_);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 if (!request->IsCancelled()) { 139 if (!request->IsCancelled()) {
140 WebDataServiceConsumer* consumer = request->GetConsumer(); 140 WebDataServiceConsumer* consumer = request->GetConsumer();
141 request->OnComplete(); 141 request->OnComplete();
142 if (consumer) { 142 if (consumer) {
143 scoped_ptr<WDTypedResult> r = request->GetResult(); 143 scoped_ptr<WDTypedResult> r = request->GetResult();
144 consumer->OnWebDataServiceRequestDone(request->GetHandle(), r.get()); 144 consumer->OnWebDataServiceRequestDone(request->GetHandle(), r.get());
145 } 145 }
146 } 146 }
147 147
148 } 148 }
OLDNEW
« no previous file with comments | « components/autofill/browser/personal_data_manager_unittest.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698