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

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: fix ownership issues 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
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(
232 ChromeUtilityMsg_ParseMediaMetadata,
233 std::string /* mime_type */,
234 int64 /* total_size */)
235
236 IPC_MESSAGE_CONTROL2(
237 ChromeUtilityMsg_ParseMediaMetadata_RequestBlobBytes_Finished,
238 int64 /* request_id */,
239 std::string /* bytes */)
vandebo (ex-Chrome) 2014/01/07 18:34:59 Maybe this should be char* instead of std::string?
tommycli 2014/01/07 20:23:31 I don't see any other pointers in IPC messages. I
vandebo (ex-Chrome) 2014/01/08 00:26:18 I think it's preferred to pass std::vector<unsigne
tommycli 2014/01/08 01:17:10 Done.
230 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 240 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
231 241
232 //------------------------------------------------------------------------------ 242 //------------------------------------------------------------------------------
233 // Utility process host messages: 243 // Utility process host messages:
234 // These are messages from the utility process to the browser. 244 // These are messages from the utility process to the browser.
235 245
236 // Reply when the utility process is done unpacking an extension. |manifest| 246 // Reply when the utility process is done unpacking an extension. |manifest|
237 // is the parsed manifest.json file. 247 // is the parsed manifest.json file.
238 // The unpacker should also have written out files containing the decoded 248 // 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 249 // 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. 375 // the INI files in Picasa Folders.
366 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, 376 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished,
367 picasa::AlbumImagesMap /* albums_images */) 377 picasa::AlbumImagesMap /* albums_images */)
368 #endif // defined(OS_WIN) || defined(OS_MACOSX) 378 #endif // defined(OS_WIN) || defined(OS_MACOSX)
369 379
370 #if !defined(OS_ANDROID) && !defined(OS_IOS) 380 #if !defined(OS_ANDROID) && !defined(OS_IOS)
371 // Reply after checking the passed media file. A true result indicates that 381 // Reply after checking the passed media file. A true result indicates that
372 // the file appears to be a well formed media file. 382 // the file appears to be a well formed media file.
373 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, 383 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished,
374 bool /* passed_checks */) 384 bool /* passed_checks */)
385
386 IPC_MESSAGE_CONTROL2(
387 ChromeUtilityHostMsg_ParseMediaMetadata_Finished,
388 bool /* parse_success */,
389 base::DictionaryValue /* metadata */)
390
391 IPC_MESSAGE_CONTROL3(
392 ChromeUtilityHostMsg_ParseMediaMetadata_RequestBlobBytes,
393 int64 /* request_id */,
394 int64 /* start_byte */,
395 int64 /* length */)
375 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 396 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698