| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_view_manager_basic.h" | 5 #include "chrome/browser/printing/print_view_manager_basic.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" |
| 8 |
| 7 #if defined(OS_ANDROID) | 9 #if defined(OS_ANDROID) |
| 8 #include "base/bind.h" | 10 #include "base/bind.h" |
| 9 #include "printing/printing_context_android.h" | 11 #include "printing/printing_context_android.h" |
| 10 #endif | 12 #endif |
| 11 | 13 |
| 12 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManagerBasic); | 14 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManagerBasic); |
| 13 | 15 |
| 14 namespace printing { | 16 namespace printing { |
| 15 | 17 |
| 16 PrintViewManagerBasic::PrintViewManagerBasic(content::WebContents* web_contents) | 18 PrintViewManagerBasic::PrintViewManagerBasic(content::WebContents* web_contents) |
| 17 : PrintViewManagerBase(web_contents) { | 19 : PrintViewManagerBase(web_contents) { |
| 18 #if defined(OS_ANDROID) | 20 #if defined(OS_ANDROID) |
| 19 pdf_writing_done_callback_ = | 21 pdf_writing_done_callback_ = |
| 20 base::Bind(&PrintingContextAndroid::PdfWritingDone); | 22 base::Bind(&PrintingContextAndroid::PdfWritingDone); |
| 21 #endif | 23 #endif |
| 22 } | 24 } |
| 23 | 25 |
| 24 PrintViewManagerBasic::~PrintViewManagerBasic() { | 26 PrintViewManagerBasic::~PrintViewManagerBasic() { |
| 25 } | 27 } |
| 26 | 28 |
| 27 } // namespace printing | 29 } // namespace printing |
| OLD | NEW |