OLD | NEW |
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 IPC_STRUCT_TRAITS_BEGIN(picasa::AlbumTableFilesForTransit) | 71 IPC_STRUCT_TRAITS_BEGIN(picasa::AlbumTableFilesForTransit) |
72 IPC_STRUCT_TRAITS_MEMBER(indicator_file) | 72 IPC_STRUCT_TRAITS_MEMBER(indicator_file) |
73 IPC_STRUCT_TRAITS_MEMBER(category_file) | 73 IPC_STRUCT_TRAITS_MEMBER(category_file) |
74 IPC_STRUCT_TRAITS_MEMBER(date_file) | 74 IPC_STRUCT_TRAITS_MEMBER(date_file) |
75 IPC_STRUCT_TRAITS_MEMBER(filename_file) | 75 IPC_STRUCT_TRAITS_MEMBER(filename_file) |
76 IPC_STRUCT_TRAITS_MEMBER(name_file) | 76 IPC_STRUCT_TRAITS_MEMBER(name_file) |
77 IPC_STRUCT_TRAITS_MEMBER(token_file) | 77 IPC_STRUCT_TRAITS_MEMBER(token_file) |
78 IPC_STRUCT_TRAITS_MEMBER(uid_file) | 78 IPC_STRUCT_TRAITS_MEMBER(uid_file) |
79 IPC_STRUCT_TRAITS_END() | 79 IPC_STRUCT_TRAITS_END() |
80 | 80 |
| 81 IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents) |
| 82 IPC_STRUCT_TRAITS_MEMBER(folder_path) |
| 83 IPC_STRUCT_TRAITS_MEMBER(ini_contents) |
| 84 IPC_STRUCT_TRAITS_END() |
| 85 |
81 //------------------------------------------------------------------------------ | 86 //------------------------------------------------------------------------------ |
82 // Utility process messages: | 87 // Utility process messages: |
83 // These are messages from the browser to the utility process. | 88 // These are messages from the browser to the utility process. |
84 | 89 |
85 // Tell the utility process to unpack the given extension file in its | 90 // Tell the utility process to unpack the given extension file in its |
86 // directory and verify that it is valid. | 91 // directory and verify that it is valid. |
87 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, | 92 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, |
88 base::FilePath /* extension_filename */, | 93 base::FilePath /* extension_filename */, |
89 std::string /* extension_id */, | 94 std::string /* extension_id */, |
90 int /* Manifest::Location */, | 95 int /* Manifest::Location */, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 #if defined(OS_WIN) || defined(OS_MACOSX) | 164 #if defined(OS_WIN) || defined(OS_MACOSX) |
160 // Tell the utility process to parse the iTunes library XML file and | 165 // Tell the utility process to parse the iTunes library XML file and |
161 // return the parse result as well as the iTunes library as an itunes::Library. | 166 // return the parse result as well as the iTunes library as an itunes::Library. |
162 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseITunesLibraryXmlFile, | 167 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseITunesLibraryXmlFile, |
163 IPC::PlatformFileForTransit /* XML file to parse */) | 168 IPC::PlatformFileForTransit /* XML file to parse */) |
164 | 169 |
165 // Tells the utility process to parse the Picasa PMP database and return a | 170 // Tells the utility process to parse the Picasa PMP database and return a |
166 // listing of the user's Picasa albums and folders, along with metadata. | 171 // listing of the user's Picasa albums and folders, along with metadata. |
167 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase, | 172 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase, |
168 picasa::AlbumTableFilesForTransit /* album_table_files */) | 173 picasa::AlbumTableFilesForTransit /* album_table_files */) |
| 174 |
| 175 // Tells the utility process to index the Picasa user-created Album contents |
| 176 // by parsing all the INI files in Picasa Folders. |
| 177 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents, |
| 178 picasa::AlbumUIDSet /* album_uids */, |
| 179 std::vector<picasa::FolderINIContents> /* folders_inis */) |
169 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 180 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
170 | 181 |
171 //------------------------------------------------------------------------------ | 182 //------------------------------------------------------------------------------ |
172 // Utility process host messages: | 183 // Utility process host messages: |
173 // These are messages from the utility process to the browser. | 184 // These are messages from the utility process to the browser. |
174 | 185 |
175 // Reply when the utility process is done unpacking an extension. |manifest| | 186 // Reply when the utility process is done unpacking an extension. |manifest| |
176 // is the parsed manifest.json file. | 187 // is the parsed manifest.json file. |
177 // The unpacker should also have written out files containing the decoded | 188 // The unpacker should also have written out files containing the decoded |
178 // images and message catalogs from the extension. See extensions::Unpacker for | 189 // images and message catalogs from the extension. See extensions::Unpacker for |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotITunesLibrary, | 287 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotITunesLibrary, |
277 bool /* Parser result */, | 288 bool /* Parser result */, |
278 itunes::parser::Library /* iTunes library */) | 289 itunes::parser::Library /* iTunes library */) |
279 | 290 |
280 // Reply after parsing the Picasa PMP Database with the parser result and a | 291 // Reply after parsing the Picasa PMP Database with the parser result and a |
281 // listing of the user's Picasa albums and folders, along with metadata. | 292 // listing of the user's Picasa albums and folders, along with metadata. |
282 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_ParsePicasaPMPDatabase_Finished, | 293 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_ParsePicasaPMPDatabase_Finished, |
283 bool /* parse_success */, | 294 bool /* parse_success */, |
284 std::vector<picasa::AlbumInfo> /* albums */, | 295 std::vector<picasa::AlbumInfo> /* albums */, |
285 std::vector<picasa::AlbumInfo> /* folders */) | 296 std::vector<picasa::AlbumInfo> /* folders */) |
| 297 |
| 298 // Reply after indexing the Picasa user-created Album contents by parsing all |
| 299 // the INI files in Picasa Folders. |
| 300 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, |
| 301 picasa::AlbumImagesMap /* albums_images */) |
286 #endif // defined(OS_WIN) || defined(OS_MACOSX) | 302 #endif // defined(OS_WIN) || defined(OS_MACOSX) |
OLD | NEW |