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

Side by Side Diff: chrome/common/extensions/chrome_utility_extensions_messages.h

Issue 2639503002: Convert utility process CheckMediaFile IPC to mojo (Closed)
Patch Set: Removed unused #include files, add TODO. Created 3 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase, 78 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParsePicasaPMPDatabase,
79 picasa::AlbumTableFilesForTransit /* album_table_files */) 79 picasa::AlbumTableFilesForTransit /* album_table_files */)
80 80
81 // Tells the utility process to index the Picasa user-created Album contents 81 // Tells the utility process to index the Picasa user-created Album contents
82 // by parsing all the INI files in Picasa Folders. 82 // by parsing all the INI files in Picasa Folders.
83 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents, 83 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_IndexPicasaAlbumsContents,
84 picasa::AlbumUIDSet /* album_uids */, 84 picasa::AlbumUIDSet /* album_uids */,
85 std::vector<picasa::FolderINIContents> /* folders_inis */) 85 std::vector<picasa::FolderINIContents> /* folders_inis */)
86 #endif // defined(OS_WIN) || defined(OS_MACOSX) 86 #endif // defined(OS_WIN) || defined(OS_MACOSX)
87 87
88 // Tell the utility process to attempt to validate the passed media file. The
89 // file will undergo basic sanity checks and will be decoded for up to
90 // |milliseconds_of_decoding| wall clock time. It is still not safe to decode
91 // the file in the browser process after this check.
92 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_CheckMediaFile,
93 int64_t /* milliseconds_of_decoding */,
94 IPC::PlatformFileForTransit /* Media file to parse */)
95
96 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished, 88 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_RequestBlobBytes_Finished,
97 int64_t /* request_id */, 89 int64_t /* request_id */,
98 std::string /* bytes */) 90 std::string /* bytes */)
99 91
100 // Requests that the utility process write the contents of the source file to 92 // Requests that the utility process write the contents of the source file to
101 // the removable drive listed in the target file. The target will be restricted 93 // the removable drive listed in the target file. The target will be restricted
102 // to removable drives by the utility process. 94 // to removable drives by the utility process.
103 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write, 95 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_ImageWriter_Write,
104 base::FilePath /* source file */, 96 base::FilePath /* source file */,
105 base::FilePath /* target file */) 97 base::FilePath /* target file */)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 bool /* parse_success */, 130 bool /* parse_success */,
139 std::vector<picasa::AlbumInfo> /* albums */, 131 std::vector<picasa::AlbumInfo> /* albums */,
140 std::vector<picasa::AlbumInfo> /* folders */) 132 std::vector<picasa::AlbumInfo> /* folders */)
141 133
142 // Reply after indexing the Picasa user-created Album contents by parsing all 134 // Reply after indexing the Picasa user-created Album contents by parsing all
143 // the INI files in Picasa Folders. 135 // the INI files in Picasa Folders.
144 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, 136 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished,
145 picasa::AlbumImagesMap /* albums_images */) 137 picasa::AlbumImagesMap /* albums_images */)
146 #endif // defined(OS_WIN) || defined(OS_MACOSX) 138 #endif // defined(OS_WIN) || defined(OS_MACOSX)
147 139
148 // Reply after checking the passed media file. A true result indicates that
149 // the file appears to be a well formed media file.
150 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_CheckMediaFile_Finished,
151 bool /* passed_checks */)
152
153 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes, 140 IPC_MESSAGE_CONTROL3(ChromeUtilityHostMsg_RequestBlobBytes,
154 int64_t /* request_id */, 141 int64_t /* request_id */,
155 int64_t /* start_byte */, 142 int64_t /* start_byte */,
156 int64_t /* length */) 143 int64_t /* length */)
157 144
158 // Reply when a write or verify operation succeeds. 145 // Reply when a write or verify operation succeeds.
159 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded) 146 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Succeeded)
160 147
161 // Reply when a write or verify operation has been fully cancelled. 148 // Reply when a write or verify operation has been fully cancelled.
162 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled) 149 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ImageWriter_Cancelled)
163 150
164 // Reply when a write or verify operation fails to complete. 151 // Reply when a write or verify operation fails to complete.
165 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed, 152 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Failed,
166 std::string /* message */) 153 std::string /* message */)
167 154
168 // Periodic status update about the progress of an operation. 155 // Periodic status update about the progress of an operation.
169 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress, 156 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ImageWriter_Progress,
170 int64_t /* number of bytes processed */) 157 int64_t /* number of bytes processed */)
OLDNEW
« no previous file with comments | « chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc ('k') | chrome/common/extensions/media_parser.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698