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 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 int location, int creation_flags); | 53 int location, int creation_flags); |
54 void OnUnpackWebResource(const std::string& resource_data); | 54 void OnUnpackWebResource(const std::string& resource_data); |
55 void OnParseUpdateManifest(const std::string& xml); | 55 void OnParseUpdateManifest(const std::string& xml); |
56 void OnDecodeImage(const std::vector<unsigned char>& encoded_data); | 56 void OnDecodeImage(const std::vector<unsigned char>& encoded_data); |
57 void OnDecodeImageBase64(const std::string& encoded_data); | 57 void OnDecodeImageBase64(const std::string& encoded_data); |
58 void OnRenderPDFPagesToMetafile( | 58 void OnRenderPDFPagesToMetafile( |
59 base::PlatformFile pdf_file, | 59 base::PlatformFile pdf_file, |
60 const base::FilePath& metafile_path, | 60 const base::FilePath& metafile_path, |
61 const printing::PdfRenderSettings& settings, | 61 const printing::PdfRenderSettings& settings, |
62 const std::vector<printing::PageRange>& page_ranges); | 62 const std::vector<printing::PageRange>& page_ranges); |
| 63 #if defined(OS_WIN) |
| 64 void OnRenderPDFToMetafile(IPC::PlatformFileForTransit pdf_transit, |
| 65 const base::FilePath& metafile_path, |
| 66 const printing::PdfRenderSettings& settings); |
| 67 #endif |
63 void OnRenderPDFPagesToPWGRaster( | 68 void OnRenderPDFPagesToPWGRaster( |
64 IPC::PlatformFileForTransit pdf_transit, | 69 IPC::PlatformFileForTransit pdf_transit, |
65 const printing::PdfRenderSettings& settings, | 70 const printing::PdfRenderSettings& settings, |
66 const printing::PwgRasterSettings& bitmap_settings, | 71 const printing::PwgRasterSettings& bitmap_settings, |
67 IPC::PlatformFileForTransit bitmap_transit); | 72 IPC::PlatformFileForTransit bitmap_transit); |
68 void OnRobustJPEGDecodeImage( | 73 void OnRobustJPEGDecodeImage( |
69 const std::vector<unsigned char>& encoded_data); | 74 const std::vector<unsigned char>& encoded_data); |
70 void OnParseJSON(const std::string& json); | 75 void OnParseJSON(const std::string& json); |
71 | 76 |
72 #if defined(OS_CHROMEOS) | 77 #if defined(OS_CHROMEOS) |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 bool filter_messages_; | 148 bool filter_messages_; |
144 // A list of message_ids to filter. | 149 // A list of message_ids to filter. |
145 std::set<int> message_id_whitelist_; | 150 std::set<int> message_id_whitelist_; |
146 | 151 |
147 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); | 152 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); |
148 }; | 153 }; |
149 | 154 |
150 } // namespace chrome | 155 } // namespace chrome |
151 | 156 |
152 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ | 157 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ |
OLD | NEW |