OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #if defined(OS_ANDROID) |
| 8 #include "base/file_descriptor_posix.h" |
| 9 #endif |
| 10 |
7 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManagerBasic); | 11 DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintViewManagerBasic); |
8 | 12 |
9 namespace printing { | 13 namespace printing { |
10 | 14 |
11 PrintViewManagerBasic::PrintViewManagerBasic(content::WebContents* web_contents) | 15 PrintViewManagerBasic::PrintViewManagerBasic(content::WebContents* web_contents) |
12 : PrintViewManagerBase(web_contents) { | 16 : PrintViewManagerBase(web_contents) { |
13 } | 17 } |
14 | 18 |
15 PrintViewManagerBasic::~PrintViewManagerBasic() { | 19 PrintViewManagerBasic::~PrintViewManagerBasic() { |
16 } | 20 } |
17 | 21 |
| 22 #if defined(OS_ANDROID) |
| 23 void PrintViewManagerBasic::SetFileDescriptor( |
| 24 const base::FileDescriptor& file_descriptor) { |
| 25 file_descriptor_ = file_descriptor; |
| 26 } |
| 27 |
| 28 base::FileDescriptor PrintViewManagerBasic::GetFileDescriptor() const { |
| 29 return file_descriptor_; |
| 30 } |
| 31 #endif |
| 32 |
18 } // namespace printing | 33 } // namespace printing |
OLD | NEW |