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

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

Issue 20572004: Add media file validation to utility process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final nits Created 7 years, 4 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
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/utility/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase, 182 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase,
183 picasa::AlbumTableFilesForTransit /* album_table_files */) 183 picasa::AlbumTableFilesForTransit /* album_table_files */)
184 184
185 // Tells the utility process to index the Picasa user-created Album contents 185 // Tells the utility process to index the Picasa user-created Album contents
186 // by parsing all the INI files in Picasa Folders. 186 // by parsing all the INI files in Picasa Folders.
187 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents, 187 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents,
188 picasa::AlbumUIDSet /* album_uids */, 188 picasa::AlbumUIDSet /* album_uids */,
189 std::vector<picasa::FolderINIContents> /* folders_inis */) 189 std::vector<picasa::FolderINIContents> /* folders_inis */)
190 #endif // defined(OS_WIN) || defined(OS_MACOSX) 190 #endif // defined(OS_WIN) || defined(OS_MACOSX)
191 191
192 #if !defined(OS_ANDROID) && !defined(OS_IOS)
193 // Tell the utility process to attempt to validate the passed media file. The
194 // file will undergo basic sanity checks and will be decoded for up to
195 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode
196 // the file in the browser process after this check.
197 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile,
198 int64 /* milliseconds_of_decoding */,
199 IPC::PlatformFileForTransit /* Media file to parse */)
200 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
201
192 //------------------------------------------------------------------------------ 202 //------------------------------------------------------------------------------
193 // Utility process host messages: 203 // Utility process host messages:
194 // These are messages from the utility process to the browser. 204 // These are messages from the utility process to the browser.
195 205
196 // Reply when the utility process is done unpacking an extension. |manifest| 206 // Reply when the utility process is done unpacking an extension. |manifest|
197 // is the parsed manifest.json file. 207 // is the parsed manifest.json file.
198 // The unpacker should also have written out files containing the decoded 208 // The unpacker should also have written out files containing the decoded
199 // images and message catalogs from the extension. The data is written into a 209 // images and message catalogs from the extension. The data is written into a
200 // DecodedImages struct into a file named kDecodedImagesFilename in the 210 // DecodedImages struct into a file named kDecodedImagesFilename in the
201 // directory that was passed in. This is done because the data is too large to 211 // directory that was passed in. This is done because the data is too large to
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_ParsePicasaPMPDatabase_Finished, 315 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_ParsePicasaPMPDatabase_Finished,
306 bool /* parse_success */, 316 bool /* parse_success */,
307 std::vector<picasa::AlbumInfo> /* albums */, 317 std::vector<picasa::AlbumInfo> /* albums */,
308 std::vector<picasa::AlbumInfo> /* folders */) 318 std::vector<picasa::AlbumInfo> /* folders */)
309 319
310 // Reply after indexing the Picasa user-created Album contents by parsing all 320 // Reply after indexing the Picasa user-created Album contents by parsing all
311 // the INI files in Picasa Folders. 321 // the INI files in Picasa Folders.
312 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, 322 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished,
313 picasa::AlbumImagesMap /* albums_images */) 323 picasa::AlbumImagesMap /* albums_images */)
314 #endif // defined(OS_WIN) || defined(OS_MACOSX) 324 #endif // defined(OS_WIN) || defined(OS_MACOSX)
325
326 #if !defined(OS_ANDROID) && !defined(OS_IOS)
327 // Reply after checking the passed media file. A true result indicates that
328 // the file appears to be a well formed media file.
329 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished,
330 bool /* passed_checks */)
331 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
OLDNEW
« no previous file with comments | « chrome/chrome.gyp ('k') | chrome/utility/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698