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

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

Issue 464613002: Move SafeManifestParser to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge and update gn Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/utility/extensions/extensions_handler.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 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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "chrome/common/media_galleries/iphoto_library.h" 12 #include "chrome/common/media_galleries/iphoto_library.h"
13 #include "chrome/common/media_galleries/itunes_library.h" 13 #include "chrome/common/media_galleries/itunes_library.h"
14 #include "chrome/common/media_galleries/metadata_types.h" 14 #include "chrome/common/media_galleries/metadata_types.h"
15 #include "chrome/common/media_galleries/picasa_types.h" 15 #include "chrome/common/media_galleries/picasa_types.h"
16 #include "extensions/common/update_manifest.h"
17 #include "ipc/ipc_message_macros.h" 16 #include "ipc/ipc_message_macros.h"
18 #include "ipc/ipc_platform_file.h" 17 #include "ipc/ipc_platform_file.h"
19 18
20 #if !defined(ENABLE_EXTENSIONS) 19 #if !defined(ENABLE_EXTENSIONS)
21 #error "Extensions must be enabled" 20 #error "Extensions must be enabled"
22 #endif 21 #endif
23 22
24 #define IPC_MESSAGE_START ChromeUtilityExtensionsMsgStart 23 #define IPC_MESSAGE_START ChromeUtilityExtensionsMsgStart
25 24
26 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Result)
27 IPC_STRUCT_TRAITS_MEMBER(extension_id)
28 IPC_STRUCT_TRAITS_MEMBER(version)
29 IPC_STRUCT_TRAITS_MEMBER(browser_min_version)
30 IPC_STRUCT_TRAITS_MEMBER(package_hash)
31 IPC_STRUCT_TRAITS_MEMBER(crx_url)
32 IPC_STRUCT_TRAITS_END()
33
34 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Results)
35 IPC_STRUCT_TRAITS_MEMBER(list)
36 IPC_STRUCT_TRAITS_MEMBER(daystart_elapsed_seconds)
37 IPC_STRUCT_TRAITS_END()
38
39 #if defined(OS_MACOSX) 25 #if defined(OS_MACOSX)
40 IPC_STRUCT_TRAITS_BEGIN(iphoto::parser::Photo) 26 IPC_STRUCT_TRAITS_BEGIN(iphoto::parser::Photo)
41 IPC_STRUCT_TRAITS_MEMBER(id) 27 IPC_STRUCT_TRAITS_MEMBER(id)
42 IPC_STRUCT_TRAITS_MEMBER(location) 28 IPC_STRUCT_TRAITS_MEMBER(location)
43 IPC_STRUCT_TRAITS_MEMBER(original_location) 29 IPC_STRUCT_TRAITS_MEMBER(original_location)
44 IPC_STRUCT_TRAITS_END() 30 IPC_STRUCT_TRAITS_END()
45 31
46 IPC_STRUCT_TRAITS_BEGIN(iphoto::parser::Library) 32 IPC_STRUCT_TRAITS_BEGIN(iphoto::parser::Library)
47 IPC_STRUCT_TRAITS_MEMBER(albums) 33 IPC_STRUCT_TRAITS_MEMBER(albums)
48 IPC_STRUCT_TRAITS_MEMBER(all_photos) 34 IPC_STRUCT_TRAITS_MEMBER(all_photos)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension, 82 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension,
97 base::FilePath /* extension_filename */, 83 base::FilePath /* extension_filename */,
98 std::string /* extension_id */, 84 std::string /* extension_id */,
99 int /* Manifest::Location */, 85 int /* Manifest::Location */,
100 int /* InitFromValue flags */) 86 int /* InitFromValue flags */)
101 87
102 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_UnzipToDir, 88 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_UnzipToDir,
103 base::FilePath /* zip_file */, 89 base::FilePath /* zip_file */,
104 base::FilePath /* dir */) 90 base::FilePath /* dir */)
105 91
106 // Tell the utility process to parse the given xml document.
107 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseUpdateManifest,
108 std::string /* xml document contents */)
109
110 // Tell the utility process to decode the given image data, which is base64 92 // Tell the utility process to decode the given image data, which is base64
111 // encoded. 93 // encoded.
112 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, 94 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64,
113 std::string) // base64 encoded image contents 95 std::string) // base64 encoded image contents
114 96
115 // Tell the utility process to parse a JSON string into a Value object. 97 // Tell the utility process to parse a JSON string into a Value object.
116 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON, 98 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_ParseJSON,
117 std::string /* JSON to parse */) 99 std::string /* JSON to parse */)
118 100
119 #if defined(OS_WIN) 101 #if defined(OS_WIN)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // Reply when the utility process is done unzipping a file. |unpacked_path| 188 // Reply when the utility process is done unzipping a file. |unpacked_path|
207 // is the directory which contains the unzipped contents. 189 // is the directory which contains the unzipped contents.
208 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Succeeded, 190 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Succeeded,
209 base::FilePath /* unpacked_path */) 191 base::FilePath /* unpacked_path */)
210 192
211 // Reply when the utility process failed to unzip a file. |error| contains 193 // Reply when the utility process failed to unzip a file. |error| contains
212 // an error string to be reported to the user. 194 // an error string to be reported to the user.
213 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Failed, 195 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Failed,
214 std::string /* error */) 196 std::string /* error */)
215 197
216 // Reply when the utility process has succeeded in parsing an update manifest
217 // xml document.
218 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Succeeded,
219 UpdateManifest::Results /* updates */)
220
221 // Reply when an error occurred parsing the update manifest. |error_message|
222 // is a description of what went wrong suitable for logging.
223 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseUpdateManifest_Failed,
224 std::string /* error_message, if any */)
225
226 // Reply when the utility process successfully parsed a JSON string. 198 // Reply when the utility process successfully parsed a JSON string.
227 // 199 //
228 // WARNING: The result can be of any Value subclass type, but we can't easily 200 // WARNING: The result can be of any Value subclass type, but we can't easily
229 // pass indeterminate value types by const object reference with our IPC macros, 201 // pass indeterminate value types by const object reference with our IPC macros,
230 // so we put the result Value into a ListValue. Handlers should examine the 202 // so we put the result Value into a ListValue. Handlers should examine the
231 // first (and only) element of the ListValue for the actual result. 203 // first (and only) element of the ListValue for the actual result.
232 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded, 204 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_ParseJSON_Succeeded,
233 base::ListValue) 205 base::ListValue)
234 206
235 // Reply when the utility process failed in parsing a JSON string. 207 // Reply when the utility process failed in parsing a JSON string.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // elevation). 280 // elevation).
309 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials, 281 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials,
310 std::string /* ssid */) 282 std::string /* ssid */)
311 283
312 // Reply after getting WiFi credentials from the system. |success| is false if 284 // Reply after getting WiFi credentials from the system. |success| is false if
313 // error occurred. 285 // error occurred.
314 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials, 286 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials,
315 std::string /* key_data */, 287 std::string /* key_data */,
316 bool /* success */) 288 bool /* success */)
317 #endif // defined(OS_WIN) 289 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/chrome_browser_extensions.gypi ('k') | chrome/utility/extensions/extensions_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698