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), |
| 17 file_descriptor_(NULL) { |
13 } | 18 } |
14 | 19 |
15 PrintViewManagerBasic::~PrintViewManagerBasic() { | 20 PrintViewManagerBasic::~PrintViewManagerBasic() { |
16 } | 21 } |
17 | 22 |
| 23 #if defined(OS_ANDROID) |
| 24 void PrintViewManagerBasic::SetFileDescriptor( |
| 25 const base::FileDescriptor& file_descriptor) { |
| 26 file_descriptor_ = file_descriptor; |
| 27 } |
| 28 |
| 29 base::FileDescriptor PrintViewManagerBasic::GetFileDescriptor() { |
| 30 return file_descriptor_; |
| 31 } |
| 32 #endif |
| 33 |
18 } // namespace printing | 34 } // namespace printing |
OLD | NEW |