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_worker.h" | 5 #include "chrome/browser/printing/print_job_worker.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/callback.h" | 9 #include "base/callback.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/printing/print_job.h" | 15 #include "chrome/browser/printing/print_job.h" |
15 #include "chrome/common/chrome_notification_types.h" | |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
17 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "printing/backend/print_backend.h" | 19 #include "printing/backend/print_backend.h" |
20 #include "printing/print_job_constants.h" | 20 #include "printing/print_job_constants.h" |
21 #include "printing/printed_document.h" | 21 #include "printing/printed_document.h" |
22 #include "printing/printed_page.h" | 22 #include "printing/printed_page.h" |
23 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
24 | 24 |
25 using content::BrowserThread; | 25 using content::BrowserThread; |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 JobEventDetails::FAILED, document_, | 370 JobEventDetails::FAILED, document_, |
371 scoped_refptr<PrintedPage>())); | 371 scoped_refptr<PrintedPage>())); |
372 Cancel(); | 372 Cancel(); |
373 | 373 |
374 // Makes sure the variables are reinitialized. | 374 // Makes sure the variables are reinitialized. |
375 document_ = NULL; | 375 document_ = NULL; |
376 page_number_ = PageNumber::npos(); | 376 page_number_ = PageNumber::npos(); |
377 } | 377 } |
378 | 378 |
379 } // namespace printing | 379 } // namespace printing |
OLD | NEW |