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

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: patch that compiles 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/media_galleries/picasa_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 IPC_STRUCT_TRAITS_BEGIN(picasa::AlbumTableFilesForTransit) 81 IPC_STRUCT_TRAITS_BEGIN(picasa::AlbumTableFilesForTransit)
82 IPC_STRUCT_TRAITS_MEMBER(indicator_file) 82 IPC_STRUCT_TRAITS_MEMBER(indicator_file)
83 IPC_STRUCT_TRAITS_MEMBER(category_file) 83 IPC_STRUCT_TRAITS_MEMBER(category_file)
84 IPC_STRUCT_TRAITS_MEMBER(date_file) 84 IPC_STRUCT_TRAITS_MEMBER(date_file)
85 IPC_STRUCT_TRAITS_MEMBER(filename_file) 85 IPC_STRUCT_TRAITS_MEMBER(filename_file)
86 IPC_STRUCT_TRAITS_MEMBER(name_file) 86 IPC_STRUCT_TRAITS_MEMBER(name_file)
87 IPC_STRUCT_TRAITS_MEMBER(token_file) 87 IPC_STRUCT_TRAITS_MEMBER(token_file)
88 IPC_STRUCT_TRAITS_MEMBER(uid_file) 88 IPC_STRUCT_TRAITS_MEMBER(uid_file)
89 IPC_STRUCT_TRAITS_END() 89 IPC_STRUCT_TRAITS_END()
90 90
91 IPC_STRUCT_TRAITS_BEGIN(picasa::FolderINIContents)
92 IPC_STRUCT_TRAITS_MEMBER(folder_path)
93 IPC_STRUCT_TRAITS_MEMBER(ini_contents)
94 IPC_STRUCT_TRAITS_END()
95
91 //------------------------------------------------------------------------------ 96 //------------------------------------------------------------------------------
92 // Utility process messages: 97 // Utility process messages:
93 // These are messages from the browser to the utility process. 98 // These are messages from the browser to the utility process.
94 99
95 // Tell the utility process to unpack the given extension file in its 100 // Tell the utility process to unpack the given extension file in its
96 // directory and verify that it is valid. 101 // directory and verify that it is valid.
97 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, 102 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension,
98 base::FilePath /* extension_filename */, 103 base::FilePath /* extension_filename */,
99 std::string /* extension_id */, 104 std::string /* extension_id */,
100 int /* Manifest::Location */, 105 int /* Manifest::Location */,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 #if defined(OS_WIN) || defined(OS_MACOSX) 174 #if defined(OS_WIN) || defined(OS_MACOSX)
170 // Tell the utility process to parse the iTunes library XML file and 175 // Tell the utility process to parse the iTunes library XML file and
171 // return the parse result as well as the iTunes library as an itunes::Library. 176 // return the parse result as well as the iTunes library as an itunes::Library.
172 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseITunesLibraryXmlFile, 177 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseITunesLibraryXmlFile,
173 IPC::PlatformFileForTransit /* XML file to parse */) 178 IPC::PlatformFileForTransit /* XML file to parse */)
174 179
175 // Tells the utility process to parse the Picasa PMP database and return a 180 // Tells the utility process to parse the Picasa PMP database and return a
176 // listing of the user's Picasa albums and folders, along with metadata. 181 // listing of the user's Picasa albums and folders, along with metadata.
177 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase, 182 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase,
178 picasa::AlbumTableFilesForTransit /* album_table_files */) 183 picasa::AlbumTableFilesForTransit /* album_table_files */)
184
185 // Tells the utility process to index the Picasa user-created Album contents
186 // by parsing all the INI files in Picasa Folders.
187 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents,
188 picasa::AlbumUIDSet /* album_uids */,
189 std::vector<picasa::FolderINIContents> /* folders_inis */)
179 #endif // defined(OS_WIN) || defined(OS_MACOSX) 190 #endif // defined(OS_WIN) || defined(OS_MACOSX)
180 191
181 //------------------------------------------------------------------------------ 192 //------------------------------------------------------------------------------
182 // Utility process host messages: 193 // Utility process host messages:
183 // These are messages from the utility process to the browser. 194 // These are messages from the utility process to the browser.
184 195
185 // Reply when the utility process is done unpacking an extension. |manifest| 196 // Reply when the utility process is done unpacking an extension. |manifest|
186 // is the parsed manifest.json file. 197 // is the parsed manifest.json file.
187 // The unpacker should also have written out files containing the decoded 198 // The unpacker should also have written out files containing the decoded
188 // images and message catalogs from the extension. The data is written into a 199 // images and message catalogs from the extension. The data is written into a
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotITunesLibrary, 299 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotITunesLibrary,
289 bool /* Parser result */, 300 bool /* Parser result */,
290 itunes::parser::Library /* iTunes library */) 301 itunes::parser::Library /* iTunes library */)
291 302
292 // Reply after parsing the Picasa PMP Database with the parser result and a 303 // Reply after parsing the Picasa PMP Database with the parser result and a
293 // listing of the user's Picasa albums and folders, along with metadata. 304 // listing of the user's Picasa albums and folders, along with metadata.
294 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_ParsePicasaPMPDatabase_Finished, 305 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_ParsePicasaPMPDatabase_Finished,
295 bool /* parse_success */, 306 bool /* parse_success */,
296 std::vector<picasa::AlbumInfo> /* albums */, 307 std::vector<picasa::AlbumInfo> /* albums */,
297 std::vector<picasa::AlbumInfo> /* folders */) 308 std::vector<picasa::AlbumInfo> /* folders */)
309
310 // Reply after indexing the Picasa user-created Album contents by parsing all
311 // the INI files in Picasa Folders.
312 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished,
313 picasa::AlbumImagesMap /* albums_images */)
298 #endif // defined(OS_WIN) || defined(OS_MACOSX) 314 #endif // defined(OS_WIN) || defined(OS_MACOSX)
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/common/media_galleries/picasa_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698