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

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

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: transition to AttachedPicture struct and eliminate a copy Created 6 years, 7 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/metadata_types.h"
19 #include "chrome/common/media_galleries/picasa_types.h" 20 #include "chrome/common/media_galleries/picasa_types.h"
20 #include "chrome/common/safe_browsing/zip_analyzer.h" 21 #include "chrome/common/safe_browsing/zip_analyzer.h"
21 #include "ipc/ipc_message_macros.h" 22 #include "ipc/ipc_message_macros.h"
22 #include "ipc/ipc_platform_file.h" 23 #include "ipc/ipc_platform_file.h"
23 #include "printing/backend/print_backend.h" 24 #include "printing/backend/print_backend.h"
24 #include "printing/page_range.h" 25 #include "printing/page_range.h"
25 #include "printing/pdf_render_settings.h" 26 #include "printing/pdf_render_settings.h"
26 #include "printing/pwg_raster_settings.h" 27 #include "printing/pwg_raster_settings.h"
27 #include "third_party/skia/include/core/SkBitmap.h" 28 #include "third_party/skia/include/core/SkBitmap.h"
28 29
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 IPC_STRUCT_TRAITS_MEMBER(token_file) 141 IPC_STRUCT_TRAITS_MEMBER(token_file)
141 IPC_STRUCT_TRAITS_MEMBER(uid_file) 142 IPC_STRUCT_TRAITS_MEMBER(uid_file)
142 IPC_STRUCT_TRAITS_END() 143 IPC_STRUCT_TRAITS_END()
143 144
144 IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents) 145 IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents)
145 IPC_STRUCT_TRAITS_MEMBER(folder_path) 146 IPC_STRUCT_TRAITS_MEMBER(folder_path)
146 IPC_STRUCT_TRAITS_MEMBER(ini_contents) 147 IPC_STRUCT_TRAITS_MEMBER(ini_contents)
147 IPC_STRUCT_TRAITS_END() 148 IPC_STRUCT_TRAITS_END()
148 #endif // defined(OS_WIN) || defined(OS_MACOSX) 149 #endif // defined(OS_WIN) || defined(OS_MACOSX)
149 150
151 #if !defined(OS_ANDROID) && !defined(OS_IOS)
152 IPC_STRUCT_TRAITS_BEGIN(metadata::AttachedPicture)
153 IPC_STRUCT_TRAITS_MEMBER(type)
154 IPC_STRUCT_TRAITS_MEMBER(data)
155 IPC_STRUCT_TRAITS_END()
156 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
157
150 //------------------------------------------------------------------------------ 158 //------------------------------------------------------------------------------
151 // Utility process messages: 159 // Utility process messages:
152 // These are messages from the browser to the utility process. 160 // These are messages from the browser to the utility process.
153 161
154 // Tells the utility process to unpack the given extension file in its 162 // Tells the utility process to unpack the given extension file in its
155 // directory and verify that it is valid. 163 // directory and verify that it is valid.
156 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, 164 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension,
157 base::FilePath /* extension_filename */, 165 base::FilePath /* extension_filename */,
158 std::string /* extension_id */, 166 std::string /* extension_id */,
159 int /* Manifest::Location */, 167 int /* Manifest::Location */,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 292
285 #if !defined(OS_ANDROID) && !defined(OS_IOS) 293 #if !defined(OS_ANDROID) && !defined(OS_IOS)
286 // Tell the utility process to attempt to validate the passed media file. The 294 // Tell the utility process to attempt to validate the passed media file. The
287 // file will undergo basic sanity checks and will be decoded for up to 295 // file will undergo basic sanity checks and will be decoded for up to
288 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode 296 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode
289 // the file in the browser process after this check. 297 // the file in the browser process after this check.
290 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile, 298 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile,
291 int64 /* milliseconds_of_decoding */, 299 int64 /* milliseconds_of_decoding */,
292 IPC::PlatformFileForTransit /* Media file to parse */) 300 IPC::PlatformFileForTransit /* Media file to parse */)
293 301
294 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ParseMediaMetadata, 302 IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_ParseMediaMetadata,
295 std::string /* mime_type */, 303 std::string /* mime_type */, int64 /* total_size */,
296 int64 /* total_size */) 304 bool /* get_attached_pictures */)
297 305
298 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished, 306 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished,
299 int64 /* request_id */, 307 int64 /* request_id */,
300 std::string /* bytes */) 308 std::string /* bytes */)
301 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 309 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
302 310
303 // Requests that the utility process write the contents of the source file to 311 // Requests that the utility process write the contents of the source file to
304 // the removable drive listed in the target file. The target will be restricted 312 // the removable drive listed in the target file. The target will be restricted
305 // to removable drives by the utility process. 313 // to removable drives by the utility process.
306 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write, 314 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, 482 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished,
475 picasa::AlbumImagesMap /* albums_images */) 483 picasa::AlbumImagesMap /* albums_images */)
476 #endif // defined(OS_WIN) || defined(OS_MACOSX) 484 #endif // defined(OS_WIN) || defined(OS_MACOSX)
477 485
478 #if !defined(OS_ANDROID) && !defined(OS_IOS) 486 #if !defined(OS_ANDROID) && !defined(OS_IOS)
479 // Reply after checking the passed media file. A true result indicates that 487 // Reply after checking the passed media file. A true result indicates that
480 // the file appears to be a well formed media file. 488 // the file appears to be a well formed media file.
481 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, 489 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished,
482 bool /* passed_checks */) 490 bool /* passed_checks */)
483 491
484 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_ParseMediaMetadata_Finished, 492 IPC_MESSAGE_CONTROL3(
485 bool /* parse_success */, 493 ChromeUtilityHostMsg_ParseMediaMetadata_Finished,
486 base::DictionaryValue /* metadata */) 494 bool /* parse_success */,
495 base::DictionaryValue /* metadata */,
496 std::vector<metadata::AttachedPicture> /* attached_pictures */)
487 497
488 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, 498 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes,
489 int64 /* request_id */, 499 int64 /* request_id */,
490 int64 /* start_byte */, 500 int64 /* start_byte */,
491 int64 /* length */) 501 int64 /* length */)
492 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 502 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
493 503
494 // Reply when a write or verify operation succeeds. 504 // Reply when a write or verify operation succeeds.
495 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded) 505 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded)
496 506
(...skipping 14 matching lines...) Expand all
511 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials, 521 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetAndEncryptWiFiCredentials,
512 std::string /* ssid */, 522 std::string /* ssid */,
513 std::vector<uint8> /* public_key */) 523 std::vector<uint8> /* public_key */)
514 524
515 // Reply after getting WiFi credentials from the system and encrypting them with 525 // Reply after getting WiFi credentials from the system and encrypting them with
516 // caller's public key. |success| is false if error occurred. 526 // caller's public key. |success| is false if error occurred.
517 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials, 527 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotEncryptedWiFiCredentials,
518 std::vector<uint8> /* encrypted_key_data */, 528 std::vector<uint8> /* encrypted_key_data */,
519 bool /* success */) 529 bool /* success */)
520 #endif // defined(OS_WIN) 530 #endif // defined(OS_WIN)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698