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

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

Issue 864093002: Move sandboxed_unpacker.{h,cc} from chrome/ to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile errors Created 5 years, 10 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_tests_unit.gypi ('k') | chrome/utility/chrome_content_utility_client.cc » ('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"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 IPC_STRUCT_TRAITS_BEGIN(metadata::AttachedImage) 69 IPC_STRUCT_TRAITS_BEGIN(metadata::AttachedImage)
70 IPC_STRUCT_TRAITS_MEMBER(type) 70 IPC_STRUCT_TRAITS_MEMBER(type)
71 IPC_STRUCT_TRAITS_MEMBER(data) 71 IPC_STRUCT_TRAITS_MEMBER(data)
72 IPC_STRUCT_TRAITS_END() 72 IPC_STRUCT_TRAITS_END()
73 73
74 //------------------------------------------------------------------------------ 74 //------------------------------------------------------------------------------
75 // Utility process messages: 75 // Utility process messages:
76 // These are messages from the browser to the utility process. 76 // These are messages from the browser to the utility process.
77 77
78 // Tells the utility process to unpack the given extension file in its
79 // directory and verify that it is valid.
80 IPC_MESSAGE_CONTROL4(ChromeUtilityMsg_UnpackExtension,
81 base::FilePath /* extension_filename */,
82 std::string /* extension_id */,
83 int /* Manifest::Location */,
84 int /* InitFromValue flags */)
85
86 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_UnzipToDir, 78 IPC_MESSAGE_CONTROL2(ChromeUtilityMsg_UnzipToDir,
87 base::FilePath /* zip_file */, 79 base::FilePath /* zip_file */,
88 base::FilePath /* dir */) 80 base::FilePath /* dir */)
89 81
90 // Tell the utility process to decode the given image data, which is base64 82 // Tell the utility process to decode the given image data, which is base64
91 // encoded. 83 // encoded.
92 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64, 84 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_DecodeImageBase64,
93 std::string) // base64 encoded image contents 85 std::string) // base64 encoded image contents
94 86
95 #if defined(OS_WIN) 87 #if defined(OS_WIN)
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 base::FilePath /* source file */, 147 base::FilePath /* source file */,
156 base::FilePath /* target file */) 148 base::FilePath /* target file */)
157 149
158 // Cancels a pending write or verify operation. 150 // Cancels a pending write or verify operation.
159 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_ImageWriter_Cancel) 151 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_ImageWriter_Cancel)
160 152
161 //------------------------------------------------------------------------------ 153 //------------------------------------------------------------------------------
162 // Utility process host messages: 154 // Utility process host messages:
163 // These are messages from the utility process to the browser. 155 // These are messages from the utility process to the browser.
164 156
165 // Reply when the utility process is done unpacking an extension. |manifest|
166 // is the parsed manifest.json file.
167 // The unpacker should also have written out files containing the decoded
168 // images and message catalogs from the extension. The data is written into a
169 // DecodedImages struct into a file named kDecodedImagesFilename in the
170 // directory that was passed in. This is done because the data is too large to
171 // pass over IPC.
172 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Succeeded,
173 base::DictionaryValue /* manifest */)
174
175 // Reply when the utility process has failed while unpacking an extension.
176 // |error_message| is a user-displayable explanation of what went wrong.
177 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackExtension_Failed,
178 base::string16 /* error_message, if any */)
179
180 // Reply when the utility process is done unzipping a file. |unpacked_path| 157 // Reply when the utility process is done unzipping a file. |unpacked_path|
181 // is the directory which contains the unzipped contents. 158 // is the directory which contains the unzipped contents.
182 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Succeeded, 159 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Succeeded,
183 base::FilePath /* unpacked_path */) 160 base::FilePath /* unpacked_path */)
184 161
185 // Reply when the utility process failed to unzip a file. |error| contains 162 // Reply when the utility process failed to unzip a file. |error| contains
186 // an error string to be reported to the user. 163 // an error string to be reported to the user.
187 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Failed, 164 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnzipToDir_Failed,
188 std::string /* error */) 165 std::string /* error */)
189 166
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 // elevation). 234 // elevation).
258 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials, 235 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetWiFiCredentials,
259 std::string /* ssid */) 236 std::string /* ssid */)
260 237
261 // Reply after getting WiFi credentials from the system. |success| is false if 238 // Reply after getting WiFi credentials from the system. |success| is false if
262 // error occurred. 239 // error occurred.
263 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials, 240 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GotWiFiCredentials,
264 std::string /* key_data */, 241 std::string /* key_data */,
265 bool /* success */) 242 bool /* success */)
266 #endif // defined(OS_WIN) 243 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698