| 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/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 12 #include "base/scoped_temp_dir.h" | |
| 13 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/utility_process_host_client.h" | 15 #include "content/public/browser/utility_process_host_client.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class DictionaryValue; | 18 class DictionaryValue; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace extensions { | 21 namespace extensions { |
| 22 | 22 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // True if unpacking should be done by the utility process. | 196 // True if unpacking should be done by the utility process. |
| 197 bool run_out_of_process_; | 197 bool run_out_of_process_; |
| 198 | 198 |
| 199 // Our client. | 199 // Our client. |
| 200 scoped_refptr<SandboxedUnpackerClient> client_; | 200 scoped_refptr<SandboxedUnpackerClient> client_; |
| 201 | 201 |
| 202 // The Extensions directory inside the profile. | 202 // The Extensions directory inside the profile. |
| 203 FilePath extensions_dir_; | 203 FilePath extensions_dir_; |
| 204 | 204 |
| 205 // A temporary directory to use for unpacking. | 205 // A temporary directory to use for unpacking. |
| 206 ScopedTempDir temp_dir_; | 206 base::ScopedTempDir temp_dir_; |
| 207 | 207 |
| 208 // The root directory of the unpacked extension. This is a child of temp_dir_. | 208 // The root directory of the unpacked extension. This is a child of temp_dir_. |
| 209 FilePath extension_root_; | 209 FilePath extension_root_; |
| 210 | 210 |
| 211 // Represents the extension we're unpacking. | 211 // Represents the extension we're unpacking. |
| 212 scoped_refptr<Extension> extension_; | 212 scoped_refptr<Extension> extension_; |
| 213 | 213 |
| 214 // Whether we've received a response from the utility process yet. | 214 // Whether we've received a response from the utility process yet. |
| 215 bool got_response_; | 215 bool got_response_; |
| 216 | 216 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 228 Extension::Location location_; | 228 Extension::Location location_; |
| 229 | 229 |
| 230 // Creation flags to use for the extension. These flags will be used | 230 // Creation flags to use for the extension. These flags will be used |
| 231 // when calling Extenion::Create() by the crx installer. | 231 // when calling Extenion::Create() by the crx installer. |
| 232 int creation_flags_; | 232 int creation_flags_; |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 } // namespace extensions | 235 } // namespace extensions |
| 236 | 236 |
| 237 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ | 237 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_UNPACKER_H_ |
| OLD | NEW |