OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/print_job.h" | 5 #include "chrome/browser/printing/print_job.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/printing/print_job_worker.h" | 8 #include "chrome/browser/printing/print_job_worker.h" |
9 #include "chrome/browser/printing/printed_document.h" | 9 #include "chrome/browser/printing/printed_document.h" |
10 #include "chrome/browser/printing/printed_page.h" | 10 #include "chrome/browser/printing/printed_page.h" |
11 | 11 |
12 #ifdef _MSC_VER | 12 #ifdef _MSC_VER |
13 #pragma warning(disable:4355) // 'this' : used in base member initializer list | 13 #pragma warning(disable:4355) // 'this' : used in base member initializer list |
14 #endif | 14 #endif |
15 | 15 |
| 16 using base::TimeDelta; |
| 17 |
16 namespace printing { | 18 namespace printing { |
17 | 19 |
18 PrintJob::PrintJob(PrintedPagesSource* source) | 20 PrintJob::PrintJob(PrintedPagesSource* source) |
19 : ui_message_loop_(MessageLoop::current()), | 21 : ui_message_loop_(MessageLoop::current()), |
20 worker_(new PrintJobWorker(this)), | 22 worker_(new PrintJobWorker(this)), |
21 source_(source), | 23 source_(source), |
22 is_job_pending_(false), | 24 is_job_pending_(false), |
23 is_print_dialog_box_shown_(false), | 25 is_print_dialog_box_shown_(false), |
24 is_canceling_(false) { | 26 is_canceling_(false) { |
25 } | 27 } |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 PrintedDocument* JobEventDetails::document() const { | 448 PrintedDocument* JobEventDetails::document() const { |
447 return document_; | 449 return document_; |
448 } | 450 } |
449 | 451 |
450 PrintedPage* JobEventDetails::page() const { | 452 PrintedPage* JobEventDetails::page() const { |
451 return page_; | 453 return page_; |
452 } | 454 } |
453 | 455 |
454 } // namespace printing | 456 } // namespace printing |
455 | 457 |
OLD | NEW |