OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/thread_restrictions.h" | 8 #include "base/threading/thread_restrictions.h" |
9 #include "chrome/browser/printing/print_job_worker.h" | 9 #include "chrome/browser/printing/print_job_worker.h" |
10 | 10 |
11 namespace printing { | 11 namespace printing { |
12 | 12 |
13 PrinterQuery::PrinterQuery() | 13 PrinterQuery::PrinterQuery() |
14 : io_message_loop_(MessageLoop::current()), | 14 : io_message_loop_(MessageLoop::current()), |
15 ALLOW_THIS_IN_INITIALIZER_LIST(worker_(new PrintJobWorker(this))), | 15 ALLOW_THIS_IN_INITIALIZER_LIST(worker_(new PrintJobWorker(this))), |
16 is_print_dialog_box_shown_(false), | 16 is_print_dialog_box_shown_(false), |
17 cookie_(PrintSettings::NewCookie()), | 17 cookie_(PrintSettings::NewCookie()), |
18 last_status_(PrintingContext::FAILED) { | 18 last_status_(PrintingContext::FAILED) { |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 bool PrinterQuery::is_callback_pending() const { | 125 bool PrinterQuery::is_callback_pending() const { |
126 return callback_.get() != NULL; | 126 return callback_.get() != NULL; |
127 } | 127 } |
128 | 128 |
129 bool PrinterQuery::is_valid() const { | 129 bool PrinterQuery::is_valid() const { |
130 return worker_.get() != NULL; | 130 return worker_.get() != NULL; |
131 } | 131 } |
132 | 132 |
133 } // namespace printing | 133 } // namespace printing |
OLD | NEW |