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

Side by Side Diff: chrome/browser/printing/printer_query.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 (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/printing/printer_query.h" 5 #include "chrome/browser/printing/printer_query.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 PrintJobWorker* PrinterQuery::DetachWorker(PrintJobWorkerOwner* new_owner) { 51 PrintJobWorker* PrinterQuery::DetachWorker(PrintJobWorkerOwner* new_owner) {
52 DCHECK(callback_.is_null()); 52 DCHECK(callback_.is_null());
53 DCHECK(worker_.get()); 53 DCHECK(worker_.get());
54 54
55 worker_->SetNewOwner(new_owner); 55 worker_->SetNewOwner(new_owner);
56 return worker_.release(); 56 return worker_.release();
57 } 57 }
58 58
59 MessageLoop* PrinterQuery::message_loop() { 59 base::MessageLoop* PrinterQuery::message_loop() {
60 return io_message_loop_; 60 return io_message_loop_;
61 } 61 }
62 62
63 const PrintSettings& PrinterQuery::settings() const { 63 const PrintSettings& PrinterQuery::settings() const {
64 return settings_; 64 return settings_;
65 } 65 }
66 66
67 int PrinterQuery::cookie() const { 67 int PrinterQuery::cookie() const {
68 return cookie_; 68 return cookie_;
69 } 69 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 bool PrinterQuery::is_callback_pending() const { 130 bool PrinterQuery::is_callback_pending() const {
131 return !callback_.is_null(); 131 return !callback_.is_null();
132 } 132 }
133 133
134 bool PrinterQuery::is_valid() const { 134 bool PrinterQuery::is_valid() const {
135 return worker_.get() != NULL; 135 return worker_.get() != NULL;
136 } 136 }
137 137
138 } // namespace printing 138 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job.cc ('k') | chrome/browser/speech/extension_api/tts_extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698