| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 // The root directory of the unpacked extension. This is a child of temp_dir_. | 213 // The root directory of the unpacked extension. This is a child of temp_dir_. |
| 214 base::FilePath extension_root_; | 214 base::FilePath extension_root_; |
| 215 | 215 |
| 216 // Represents the extension we're unpacking. | 216 // Represents the extension we're unpacking. |
| 217 scoped_refptr<Extension> extension_; | 217 scoped_refptr<Extension> extension_; |
| 218 | 218 |
| 219 // Whether we've received a response from the utility process yet. | 219 // Whether we've received a response from the utility process yet. |
| 220 bool got_response_; | 220 bool got_response_; |
| 221 | 221 |
| 222 // Whether we're unpacking a zip file instead of a signed CRX. |
| 223 bool is_zipfile_; |
| 224 |
| 222 // The public key that was extracted from the CRX header. | 225 // The public key that was extracted from the CRX header. |
| 223 std::string public_key_; | 226 std::string public_key_; |
| 224 | 227 |
| 225 // The extension's ID. This will be calculated from the public key in the crx | 228 // The extension's ID. This will be calculated from the public key in the crx |
| 226 // header. | 229 // header. |
| 227 std::string extension_id_; | 230 std::string extension_id_; |
| 228 | 231 |
| 229 // Time at which unpacking started. Used to compute the time unpacking takes. | 232 // Time at which unpacking started. Used to compute the time unpacking takes. |
| 230 base::TimeTicks unpack_start_time_; | 233 base::TimeTicks unpack_start_time_; |
| 231 | 234 |
| 232 // Location to use for the unpacked extension. | 235 // Location to use for the unpacked extension. |
| 233 Manifest::Location location_; | 236 Manifest::Location location_; |
| 234 | 237 |
| 235 // Creation flags to use for the extension. These flags will be used | 238 // Creation flags to use for the extension. These flags will be used |
| 236 // when calling Extenion::Create() by the crx installer. | 239 // when calling Extenion::Create() by the crx installer. |
| 237 int creation_flags_; | 240 int creation_flags_; |
| 238 | 241 |
| 239 // Sequenced task runner where file I/O operations will be performed at. | 242 // Sequenced task runner where file I/O operations will be performed at. |
| 240 scoped_refptr<base::SequencedTaskRunner> unpacker_io_task_runner_; | 243 scoped_refptr<base::SequencedTaskRunner> unpacker_io_task_runner_; |
| 241 }; | 244 }; |
| 242 | 245 |
| 243 } // namespace extensions | 246 } // namespace extensions |
| 244 | 247 |
| 245 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ | 248 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ |
| OLD | NEW |