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

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

Issue 103283003: Media Galleries API Metadata: SafeMediaMetadataParser and IPCTunnelDataReader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/utility/chrome_content_utility_client.h » ('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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 #endif // defined(OS_WIN) || defined(OS_MACOSX) 220 #endif // defined(OS_WIN) || defined(OS_MACOSX)
221 221
222 #if !defined(OS_ANDROID) && !defined(OS_IOS) 222 #if !defined(OS_ANDROID) && !defined(OS_IOS)
223 // Tell the utility process to attempt to validate the passed media file. The 223 // Tell the utility process to attempt to validate the passed media file. The
224 // file will undergo basic sanity checks and will be decoded for up to 224 // file will undergo basic sanity checks and will be decoded for up to
225 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode 225 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode
226 // the file in the browser process after this check. 226 // the file in the browser process after this check.
227 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile, 227 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile,
228 int64 /* milliseconds_of_decoding */, 228 int64 /* milliseconds_of_decoding */,
229 IPC::PlatformFileForTransit /* Media file to parse */) 229 IPC::PlatformFileForTransit /* Media file to parse */)
230
231 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ParseMediaMetadata,
232 std::string /* mime_type */,
233 int64 /* total_size */)
234
235 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished,
236 int64 /* request_id */,
237 std::string /* bytes */)
230 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 238 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
231 239
232 //------------------------------------------------------------------------------ 240 //------------------------------------------------------------------------------
233 // Utility process host messages: 241 // Utility process host messages:
234 // These are messages from the utility process to the browser. 242 // These are messages from the utility process to the browser.
235 243
236 // Reply when the utility process is done unpacking an extension. |manifest| 244 // Reply when the utility process is done unpacking an extension. |manifest|
237 // is the parsed manifest.json file. 245 // is the parsed manifest.json file.
238 // The unpacker should also have written out files containing the decoded 246 // The unpacker should also have written out files containing the decoded
239 // images and message catalogs from the extension. The data is written into a 247 // images and message catalogs from the extension. The data is written into a
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // the INI files in Picasa Folders. 373 // the INI files in Picasa Folders.
366 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, 374 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished,
367 picasa::AlbumImagesMap /* albums_images */) 375 picasa::AlbumImagesMap /* albums_images */)
368 #endif // defined(OS_WIN) || defined(OS_MACOSX) 376 #endif // defined(OS_WIN) || defined(OS_MACOSX)
369 377
370 #if !defined(OS_ANDROID) && !defined(OS_IOS) 378 #if !defined(OS_ANDROID) && !defined(OS_IOS)
371 // Reply after checking the passed media file. A true result indicates that 379 // Reply after checking the passed media file. A true result indicates that
372 // the file appears to be a well formed media file. 380 // the file appears to be a well formed media file.
373 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, 381 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished,
374 bool /* passed_checks */) 382 bool /* passed_checks */)
383
384 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_ParseMediaMetadata_Finished,
385 bool /* parse_success */,
386 base::DictionaryValue /* metadata */)
387
388 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes,
389 int64 /* request_id */,
390 int64 /* start_byte */,
391 int64 /* length */)
375 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 392 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/utility/chrome_content_utility_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698