| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_UNPACKER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 // Overwrites original files with safe results from utility process. | 210 // Overwrites original files with safe results from utility process. |
| 211 // Reports error and returns false if it fails. | 211 // Reports error and returns false if it fails. |
| 212 bool RewriteImageFiles(); | 212 bool RewriteImageFiles(); |
| 213 bool RewriteCatalogFiles(); | 213 bool RewriteCatalogFiles(); |
| 214 | 214 |
| 215 // The path to the CRX to unpack. | 215 // The path to the CRX to unpack. |
| 216 FilePath crx_path_; | 216 FilePath crx_path_; |
| 217 | 217 |
| 218 // Our client's thread. This is the thread we respond on. | 218 // Our client's thread. This is the thread we respond on. |
| 219 BrowserThread::ID thread_identifier_; | 219 content::BrowserThread::ID thread_identifier_; |
| 220 | 220 |
| 221 // ResourceDispatcherHost to pass to the utility process. | 221 // ResourceDispatcherHost to pass to the utility process. |
| 222 ResourceDispatcherHost* rdh_; | 222 ResourceDispatcherHost* rdh_; |
| 223 | 223 |
| 224 // Our client. | 224 // Our client. |
| 225 scoped_refptr<SandboxedExtensionUnpackerClient> client_; | 225 scoped_refptr<SandboxedExtensionUnpackerClient> client_; |
| 226 | 226 |
| 227 // A temporary directory to use for unpacking. | 227 // A temporary directory to use for unpacking. |
| 228 ScopedTempDir temp_dir_; | 228 ScopedTempDir temp_dir_; |
| 229 | 229 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 241 | 241 |
| 242 // Time at which unpacking started. Used to compute the time unpacking takes. | 242 // Time at which unpacking started. Used to compute the time unpacking takes. |
| 243 base::TimeTicks unpack_start_time_; | 243 base::TimeTicks unpack_start_time_; |
| 244 | 244 |
| 245 // Creation flags to use for the extension. These flags will be used | 245 // Creation flags to use for the extension. These flags will be used |
| 246 // when calling Extenion::Create() by the crx installer. | 246 // when calling Extenion::Create() by the crx installer. |
| 247 int creation_flags_; | 247 int creation_flags_; |
| 248 }; | 248 }; |
| 249 | 249 |
| 250 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ | 250 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ |
| OLD | NEW |