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

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

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

Powered by Google App Engine
This is Rietveld 408576698