Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1601)

Side by Side Diff: chrome/common/chrome_utility_messages.h

Issue 211843004: Tunnel PWGRasterConfig capability to the ticket and to the utility process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // Multiply-included message file, so no include guard. 5 // Multiply-included message file, so no include guard.
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/platform_file.h" 12 #include "base/platform_file.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "base/tuple.h" 14 #include "base/tuple.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/common/extensions/update_manifest.h" 16 #include "chrome/common/extensions/update_manifest.h"
17 #include "chrome/common/media_galleries/iphoto_library.h" 17 #include "chrome/common/media_galleries/iphoto_library.h"
18 #include "chrome/common/media_galleries/itunes_library.h" 18 #include "chrome/common/media_galleries/itunes_library.h"
19 #include "chrome/common/media_galleries/picasa_types.h" 19 #include "chrome/common/media_galleries/picasa_types.h"
20 #include "chrome/common/safe_browsing/zip_analyzer.h" 20 #include "chrome/common/safe_browsing/zip_analyzer.h"
21 #include "ipc/ipc_message_macros.h" 21 #include "ipc/ipc_message_macros.h"
22 #include "ipc/ipc_platform_file.h" 22 #include "ipc/ipc_platform_file.h"
23 #include "printing/backend/print_backend.h" 23 #include "printing/backend/print_backend.h"
24 #include "printing/page_range.h" 24 #include "printing/page_range.h"
25 #include "printing/pdf_render_settings.h" 25 #include "printing/pdf_render_settings.h"
26 #include "printing/pwg_raster_settings.h"
26 #include "third_party/skia/include/core/SkBitmap.h" 27 #include "third_party/skia/include/core/SkBitmap.h"
27 28
28 #define IPC_MESSAGE_START ChromeUtilityMsgStart 29 #define IPC_MESSAGE_START ChromeUtilityMsgStart
29 30
30 #ifndef CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ 31 #ifndef CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_
31 #define CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ 32 #define CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_
32 33
33 typedef std::vector<Tuple2<SkBitmap, base::FilePath> > DecodedImages; 34 typedef std::vector<Tuple2<SkBitmap, base::FilePath> > DecodedImages;
34 35
35 #endif // CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_ 36 #endif // CHROME_COMMON_CHROME_UTILITY_MESSAGES_H_
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 IPC_STRUCT_TRAITS_MEMBER(copies_capable) 69 IPC_STRUCT_TRAITS_MEMBER(copies_capable)
69 IPC_STRUCT_TRAITS_MEMBER(papers) 70 IPC_STRUCT_TRAITS_MEMBER(papers)
70 IPC_STRUCT_TRAITS_MEMBER(default_paper) 71 IPC_STRUCT_TRAITS_MEMBER(default_paper)
71 IPC_STRUCT_TRAITS_MEMBER(dpis) 72 IPC_STRUCT_TRAITS_MEMBER(dpis)
72 IPC_STRUCT_TRAITS_MEMBER(default_dpi) 73 IPC_STRUCT_TRAITS_MEMBER(default_dpi)
73 #endif 74 #endif
74 IPC_STRUCT_TRAITS_MEMBER(duplex_capable) 75 IPC_STRUCT_TRAITS_MEMBER(duplex_capable)
75 IPC_STRUCT_TRAITS_MEMBER(duplex_default) 76 IPC_STRUCT_TRAITS_MEMBER(duplex_default)
76 IPC_STRUCT_TRAITS_END() 77 IPC_STRUCT_TRAITS_END()
77 78
79 IPC_ENUM_TRAITS(printing::PwgRasterTransformType);
80
81 IPC_STRUCT_TRAITS_BEGIN(printing::PwgRasterSettings)
82 IPC_STRUCT_TRAITS_MEMBER(odd_page_transform)
83 IPC_STRUCT_TRAITS_MEMBER(rotate_all_pages)
84 IPC_STRUCT_TRAITS_MEMBER(reverse_page_order)
85 IPC_STRUCT_TRAITS_END()
86
78 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Result) 87 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Result)
79 IPC_STRUCT_TRAITS_MEMBER(extension_id) 88 IPC_STRUCT_TRAITS_MEMBER(extension_id)
80 IPC_STRUCT_TRAITS_MEMBER(version) 89 IPC_STRUCT_TRAITS_MEMBER(version)
81 IPC_STRUCT_TRAITS_MEMBER(browser_min_version) 90 IPC_STRUCT_TRAITS_MEMBER(browser_min_version)
82 IPC_STRUCT_TRAITS_MEMBER(package_hash) 91 IPC_STRUCT_TRAITS_MEMBER(package_hash)
83 IPC_STRUCT_TRAITS_MEMBER(crx_url) 92 IPC_STRUCT_TRAITS_MEMBER(crx_url)
84 IPC_STRUCT_TRAITS_END() 93 IPC_STRUCT_TRAITS_END()
85 94
86 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Results) 95 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Results)
87 IPC_STRUCT_TRAITS_MEMBER(list) 96 IPC_STRUCT_TRAITS_MEMBER(list)
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 179
171 // Tell the utility process to render the given PDF into a metafile. 180 // Tell the utility process to render the given PDF into a metafile.
172 // TODO(vitalybuka): switch to IPC::PlatformFileForTransit. 181 // TODO(vitalybuka): switch to IPC::PlatformFileForTransit.
173 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile, 182 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToMetafile,
174 base::PlatformFile, // PDF file 183 base::PlatformFile, // PDF file
175 base::FilePath, // Location for output metafile 184 base::FilePath, // Location for output metafile
176 printing::PdfRenderSettings, // PDF render settings 185 printing::PdfRenderSettings, // PDF render settings
177 std::vector<printing::PageRange>) 186 std::vector<printing::PageRange>)
178 187
179 // Tell the utility process to render the given PDF into a PWGRaster. 188 // Tell the utility process to render the given PDF into a PWGRaster.
180 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_RenderPDFPagesToPWGRaster, 189 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_RenderPDFPagesToPWGRaster,
181 IPC::PlatformFileForTransit, /* Input PDF file */ 190 IPC::PlatformFileForTransit, /* Input PDF file */
182 printing::PdfRenderSettings, /* PDF render settings */ 191 printing::PdfRenderSettings, /* PDF render settings */
183 IPC::PlatformFileForTransit /* Output PWG file */) 192 // PWG transform settings.
193 printing::PwgRasterSettings,
194 IPC::PlatformFileForTransit /* Output PWG file */)
184 195
185 // Tell the utility process to decode the given JPEG image data with a robust 196 // Tell the utility process to decode the given JPEG image data with a robust
186 // libjpeg codec. 197 // libjpeg codec.
187 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage, 198 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage,
188 std::vector<unsigned char>) // encoded image contents 199 std::vector<unsigned char>) // encoded image contents
189 200
190 // Tell the utility process to parse a JSON string into a Value object. 201 // Tell the utility process to parse a JSON string into a Value object.
191 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, 202 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON,
192 std::string /* JSON to parse */) 203 std::string /* JSON to parse */)
193 204
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, 488 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials,
478 std::string /* ssid */, 489 std::string /* ssid */,
479 std::vector<uint8> /* public_key */) 490 std::vector<uint8> /* public_key */)
480 491
481 // Reply after getting WiFi credentials from the system and encrypting them with 492 // Reply after getting WiFi credentials from the system and encrypting them with
482 // caller's public key. |success| is false if error occurred. 493 // caller's public key. |success| is false if error occurred.
483 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, 494 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials,
484 std::vector<uint8> /* encrypted_key_data */, 495 std::vector<uint8> /* encrypted_key_data */,
485 bool /* success */) 496 bool /* success */)
486 #endif // defined(OS_WIN) 497 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/pwg_raster_converter.cc ('k') | chrome/utility/chrome_content_utility_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698