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

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

Issue 865543002: WIP: Browser image decoding using Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add DecodeImageBase64. Created 5 years, 11 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
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 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <Windows.h> 8 #include <Windows.h>
9 #endif // defined(OS_WIN) 9 #endif // defined(OS_WIN)
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #endif // OS_WIN 57 #endif // OS_WIN
58 58
59 //------------------------------------------------------------------------------ 59 //------------------------------------------------------------------------------
60 // Utility process messages: 60 // Utility process messages:
61 // These are messages from the browser to the utility process. 61 // These are messages from the browser to the utility process.
62 62
63 // Tell the utility process to parse a JSON string into a Value object. 63 // Tell the utility process to parse a JSON string into a Value object.
64 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, 64 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON,
65 std::string /* JSON to parse */) 65 std::string /* JSON to parse */)
66 66
67 // Tell the utility process to decode the given image data.
68 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_DecodeImage,
69 std::vector<unsigned char> /* encoded image contents */,
70 bool /* shrink image if needed for IPC msg limit */)
71
72 // Tell the utility process to decode the given JPEG image data with a robust
73 // libjpeg codec.
74 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_RobustJPEGDecodeImage,
75 std::vector<unsigned char>) // encoded image contents
76
77 // Tell the utility process to patch the given |input_file| using |patch_file| 67 // Tell the utility process to patch the given |input_file| using |patch_file|
78 // and place the output in |output_file|. The patch should use the bsdiff 68 // and place the output in |output_file|. The patch should use the bsdiff
79 // algorithm (Courgette's version). 69 // algorithm (Courgette's version).
80 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff, 70 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_PatchFileBsdiff,
81 base::FilePath /* input_file */, 71 base::FilePath /* input_file */,
82 base::FilePath /* patch_file */, 72 base::FilePath /* patch_file */,
83 base::FilePath /* output_file */) 73 base::FilePath /* output_file */)
84 74
85 // Tell the utility process to patch the given |input_file| using |patch_file| 75 // Tell the utility process to patch the given |input_file| using |patch_file|
86 // and place the output in |output_file|. The patch should use the Courgette 76 // and place the output in |output_file|. The patch should use the Courgette
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Reply when the utility process failed in parsing a JSON string. 138 // Reply when the utility process failed in parsing a JSON string.
149 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed, 139 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Failed,
150 std::string /* error message, if any*/) 140 std::string /* error message, if any*/)
151 141
152 // Reply when the utility process has failed while unpacking and parsing a 142 // Reply when the utility process has failed while unpacking and parsing a
153 // web resource. |error_message| is a user-readable explanation of what 143 // web resource. |error_message| is a user-readable explanation of what
154 // went wrong. 144 // went wrong.
155 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed, 145 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Failed,
156 std::string /* error_message, if any */) 146 std::string /* error_message, if any */)
157 147
158 // Reply when the utility process has succeeded in decoding the image.
159 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_DecodeImage_Succeeded,
160 SkBitmap) // decoded image
161
162 // Reply when an error occurred decoding the image.
163 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_DecodeImage_Failed)
164
165 // Reply when a file has been patched. 148 // Reply when a file has been patched.
166 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */) 149 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_PatchFile_Finished, int /* result */)
167 150
168 #if defined(OS_CHROMEOS) 151 #if defined(OS_CHROMEOS)
169 // Reply when the utility process has succeeded in creating the zip file. 152 // Reply when the utility process has succeeded in creating the zip file.
170 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded) 153 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Succeeded)
171 154
172 // Reply when an error occured in creating the zip file. 155 // Reply when an error occured in creating the zip file.
173 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed) 156 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_CreateZipFile_Failed)
174 #endif // defined(OS_CHROMEOS) 157 #endif // defined(OS_CHROMEOS)
(...skipping 13 matching lines...) Expand all
188 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, 171 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result,
189 base::FilePath /* directory */, 172 base::FilePath /* directory */,
190 std::vector<base::FilePath> /* filenames */) 173 std::vector<base::FilePath> /* filenames */)
191 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed) 174 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetSaveFileName_Failed)
192 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result, 175 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetSaveFileName_Result,
193 base::FilePath /* path */, 176 base::FilePath /* path */,
194 int /* one_based_filter_index */) 177 int /* one_based_filter_index */)
195 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache, 178 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_BuildDirectWriteFontCache,
196 base::FilePath /* cache file path */) 179 base::FilePath /* cache file path */)
197 #endif // defined(OS_WIN) 180 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/chrome_utility.gypi ('k') | chrome/common/extensions/chrome_utility_extensions_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698