| 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/message_loop.h" | 11 #include "base/message_loop/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/chrome_notification_types.h" |
| 15 #include "chrome/browser/printing/print_job.h" | 15 #include "chrome/browser/printing/print_job.h" |
| 16 #include "chrome/browser/printing/printing_ui_web_contents_observer.h" | 16 #include "chrome/browser/printing/printing_ui_web_contents_observer.h" |
| 17 #include "chrome/grit/generated_resources.h" |
| 17 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 18 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
| 19 #include "grit/generated_resources.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 "printing/printing_utils.h" | 23 #include "printing/printing_utils.h" |
| 24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
| 25 | 25 |
| 26 using content::BrowserThread; | 26 using content::BrowserThread; |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 JobEventDetails::FAILED, document_, | 358 JobEventDetails::FAILED, document_, |
| 359 scoped_refptr<PrintedPage>())); | 359 scoped_refptr<PrintedPage>())); |
| 360 Cancel(); | 360 Cancel(); |
| 361 | 361 |
| 362 // Makes sure the variables are reinitialized. | 362 // Makes sure the variables are reinitialized. |
| 363 document_ = NULL; | 363 document_ = NULL; |
| 364 page_number_ = PageNumber::npos(); | 364 page_number_ = PageNumber::npos(); |
| 365 } | 365 } |
| 366 | 366 |
| 367 } // namespace printing | 367 } // namespace printing |
| OLD | NEW |