| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "chrome/browser/printing/print_job.h" | 6 #include "chrome/browser/printing/print_job.h" |
| 7 #include "chrome/browser/printing/print_job_worker.h" | 7 #include "chrome/browser/printing/print_job_worker.h" |
| 8 #include "chrome/browser/printing/printed_pages_source.h" | |
| 9 #include "chrome/common/notification_registrar.h" | 8 #include "chrome/common/notification_registrar.h" |
| 10 #include "chrome/common/notification_service.h" | 9 #include "chrome/common/notification_service.h" |
| 10 #include "printing/printed_pages_source.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 class TestSource : public printing::PrintedPagesSource { | 16 class TestSource : public printing::PrintedPagesSource { |
| 17 public: | 17 public: |
| 18 virtual std::wstring RenderSourceName() { | 18 virtual std::wstring RenderSourceName() { |
| 19 return L""; | 19 return L""; |
| 20 } | 20 } |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 job->is_print_dialog_box_shown(); | 137 job->is_print_dialog_box_shown(); |
| 138 job->document(); | 138 job->document(); |
| 139 // Private | 139 // Private |
| 140 job->UpdatePrintedDocument(NULL); | 140 job->UpdatePrintedDocument(NULL); |
| 141 scoped_refptr<printing::JobEventDetails> event_details; | 141 scoped_refptr<printing::JobEventDetails> event_details; |
| 142 job->OnNotifyPrintJobEvent(event_details); | 142 job->OnNotifyPrintJobEvent(event_details); |
| 143 job->OnDocumentDone(); | 143 job->OnDocumentDone(); |
| 144 job->ControlledWorkerShutdown(); | 144 job->ControlledWorkerShutdown(); |
| 145 */ | 145 */ |
| 146 } | 146 } |
| OLD | NEW |