Index: chrome/common/chrome_utility_messages.h |
diff --git a/chrome/common/chrome_utility_messages.h b/chrome/common/chrome_utility_messages.h |
index c37556541828ffc42136e89a97f32d6dbbc1b9b3..e108e9d885c8b64cf72d19222d546a836d63997b 100644 |
--- a/chrome/common/chrome_utility_messages.h |
+++ b/chrome/common/chrome_utility_messages.h |
@@ -16,6 +16,7 @@ |
#include "chrome/common/extensions/update_manifest.h" |
#include "chrome/common/media_galleries/iphoto_library.h" |
#include "chrome/common/media_galleries/itunes_library.h" |
+#include "chrome/common/media_galleries/metadata_types.h" |
#include "chrome/common/media_galleries/picasa_types.h" |
#include "chrome/common/safe_browsing/zip_analyzer.h" |
#include "ipc/ipc_message_macros.h" |
@@ -147,6 +148,13 @@ IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents) |
IPC_STRUCT_TRAITS_END() |
#endif // defined(OS_WIN) || defined(OS_MACOSX) |
+#if !defined(OS_ANDROID) && !defined(OS_IOS) |
+IPC_STRUCT_TRAITS_BEGIN(metadata::AttachedPicture) |
+ IPC_STRUCT_TRAITS_MEMBER(type) |
+ IPC_STRUCT_TRAITS_MEMBER(data) |
+IPC_STRUCT_TRAITS_END() |
+#endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
+ |
//------------------------------------------------------------------------------ |
// Utility process messages: |
// These are messages from the browser to the utility process. |
@@ -291,9 +299,9 @@ IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile, |
int64 /* milliseconds_of_decoding */, |
IPC::PlatformFileForTransit /* Media file to parse */) |
-IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ParseMediaMetadata, |
- std::string /* mime_type */, |
- int64 /* total_size */) |
+IPC_MESSAGE_CONTROL3(ChromeUtilityMsg_ParseMediaMetadata, |
+ std::string /* mime_type */, int64 /* total_size */, |
+ bool /* get_attached_pictures */) |
IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished, |
int64 /* request_id */, |
@@ -481,9 +489,11 @@ IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, |
IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished, |
bool /* passed_checks */) |
-IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_ParseMediaMetadata_Finished, |
- bool /* parse_success */, |
- base::DictionaryValue /* metadata */) |
+IPC_MESSAGE_CONTROL3( |
+ ChromeUtilityHostMsg_ParseMediaMetadata_Finished, |
+ bool /* parse_success */, |
+ base::DictionaryValue /* metadata */, |
+ std::vector<metadata::AttachedPicture> /* attached_pictures */) |
IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, |
int64 /* request_id */, |