| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/scoped_temp_dir.h" | 13 #include "base/scoped_temp_dir.h" |
| 14 #include "chrome/browser/browser_thread.h" |
| 14 #include "chrome/browser/utility_process_host.h" | 15 #include "chrome/browser/utility_process_host.h" |
| 15 | 16 |
| 16 class DictionaryValue; | 17 class DictionaryValue; |
| 17 class Extension; | 18 class Extension; |
| 18 class ResourceDispatcherHost; | 19 class ResourceDispatcherHost; |
| 19 | 20 |
| 20 class SandboxedExtensionUnpackerClient | 21 class SandboxedExtensionUnpackerClient |
| 21 : public base::RefCountedThreadSafe<SandboxedExtensionUnpackerClient> { | 22 : public base::RefCountedThreadSafe<SandboxedExtensionUnpackerClient> { |
| 22 public: | 23 public: |
| 23 // temp_dir - A temporary directory containing the results of the extension | 24 // temp_dir - A temporary directory containing the results of the extension |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 scoped_ptr<Extension> extension_; | 164 scoped_ptr<Extension> extension_; |
| 164 | 165 |
| 165 // Whether we've received a response from the utility process yet. | 166 // Whether we've received a response from the utility process yet. |
| 166 bool got_response_; | 167 bool got_response_; |
| 167 | 168 |
| 168 // The public key that was extracted from the CRX header. | 169 // The public key that was extracted from the CRX header. |
| 169 std::string public_key_; | 170 std::string public_key_; |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ | 173 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ |
| OLD | NEW |