| 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/strings/string16.h" | 6 #include "base/strings/string16.h" |
| 7 #include "chrome/browser/chrome_notification_types.h" |
| 7 #include "chrome/browser/printing/print_job.h" | 8 #include "chrome/browser/printing/print_job.h" |
| 8 #include "chrome/browser/printing/print_job_worker.h" | 9 #include "chrome/browser/printing/print_job_worker.h" |
| 9 #include "chrome/common/chrome_notification_types.h" | |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| 11 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
| 12 #include "printing/printed_pages_source.h" | 12 #include "printing/printed_pages_source.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 class TestSource : public printing::PrintedPagesSource { | 17 class TestSource : public printing::PrintedPagesSource { |
| 18 public: | 18 public: |
| 19 virtual string16 RenderSourceName() OVERRIDE { | 19 virtual string16 RenderSourceName() OVERRIDE { |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 job->is_job_pending(); | 142 job->is_job_pending(); |
| 143 job->document(); | 143 job->document(); |
| 144 // Private | 144 // Private |
| 145 job->UpdatePrintedDocument(NULL); | 145 job->UpdatePrintedDocument(NULL); |
| 146 scoped_refptr<printing::JobEventDetails> event_details; | 146 scoped_refptr<printing::JobEventDetails> event_details; |
| 147 job->OnNotifyPrintJobEvent(event_details); | 147 job->OnNotifyPrintJobEvent(event_details); |
| 148 job->OnDocumentDone(); | 148 job->OnDocumentDone(); |
| 149 job->ControlledWorkerShutdown(); | 149 job->ControlledWorkerShutdown(); |
| 150 */ | 150 */ |
| 151 } | 151 } |
| OLD | NEW |