OLD | NEW |
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/print_job.h" | 5 #include "chrome/browser/printing/print_job.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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void PrintJob::GetSettingsDone(const PrintSettings& new_settings, | 99 void PrintJob::GetSettingsDone(const PrintSettings& new_settings, |
100 PrintingContext::Result result) { | 100 PrintingContext::Result result) { |
101 NOTREACHED(); | 101 NOTREACHED(); |
102 } | 102 } |
103 | 103 |
104 PrintJobWorker* PrintJob::DetachWorker(PrintJobWorkerOwner* new_owner) { | 104 PrintJobWorker* PrintJob::DetachWorker(PrintJobWorkerOwner* new_owner) { |
105 NOTREACHED(); | 105 NOTREACHED(); |
106 return NULL; | 106 return NULL; |
107 } | 107 } |
108 | 108 |
109 MessageLoop* PrintJob::message_loop() { | 109 base::MessageLoop* PrintJob::message_loop() { |
110 return ui_message_loop_; | 110 return ui_message_loop_; |
111 } | 111 } |
112 | 112 |
113 const PrintSettings& PrintJob::settings() const { | 113 const PrintSettings& PrintJob::settings() const { |
114 return settings_; | 114 return settings_; |
115 } | 115 } |
116 | 116 |
117 int PrintJob::cookie() const { | 117 int PrintJob::cookie() const { |
118 if (!document_.get()) | 118 if (!document_.get()) |
119 // Always use an invalid cookie in this case. | 119 // Always use an invalid cookie in this case. |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 394 |
395 PrintedDocument* JobEventDetails::document() const { | 395 PrintedDocument* JobEventDetails::document() const { |
396 return document_; | 396 return document_; |
397 } | 397 } |
398 | 398 |
399 PrintedPage* JobEventDetails::page() const { | 399 PrintedPage* JobEventDetails::page() const { |
400 return page_; | 400 return page_; |
401 } | 401 } |
402 | 402 |
403 } // namespace printing | 403 } // namespace printing |
OLD | NEW |