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_worker.h" | 5 #include "chrome/browser/printing/print_job_worker.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/printing/print_job.h" | 8 #include "chrome/browser/printing/print_job.h" |
9 #include "chrome/browser/printing/printed_document.h" | |
10 #include "chrome/browser/printing/printed_page.h" | |
11 #include "chrome/common/notification_service.h" | 9 #include "chrome/common/notification_service.h" |
| 10 #include "printing/printed_document.h" |
| 11 #include "printing/printed_page.h" |
12 | 12 |
13 namespace printing { | 13 namespace printing { |
14 | 14 |
15 class PrintJobWorker::NotificationTask : public Task { | 15 class PrintJobWorker::NotificationTask : public Task { |
16 public: | 16 public: |
17 NotificationTask() : print_job_(NULL), details_(NULL) { | 17 NotificationTask() : print_job_(NULL), details_(NULL) { |
18 } | 18 } |
19 ~NotificationTask() { | 19 ~NotificationTask() { |
20 } | 20 } |
21 | 21 |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 printing::PrintJobWorker* obj) { | 278 printing::PrintJobWorker* obj) { |
279 DCHECK(!owner_.get()); | 279 DCHECK(!owner_.get()); |
280 owner_ = obj->owner_; | 280 owner_ = obj->owner_; |
281 } | 281 } |
282 | 282 |
283 void RunnableMethodTraits<printing::PrintJobWorker>::ReleaseCallee( | 283 void RunnableMethodTraits<printing::PrintJobWorker>::ReleaseCallee( |
284 printing::PrintJobWorker* obj) { | 284 printing::PrintJobWorker* obj) { |
285 DCHECK_EQ(owner_, obj->owner_); | 285 DCHECK_EQ(owner_, obj->owner_); |
286 owner_ = NULL; | 286 owner_ = NULL; |
287 } | 287 } |
OLD | NEW |