| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // SandboxedExtensionUnpacker | 118 // SandboxedExtensionUnpacker |
| 119 void OnUnpackExtensionSucceeded(const DictionaryValue& manifest); | 119 void OnUnpackExtensionSucceeded(const DictionaryValue& manifest); |
| 120 void OnUnpackExtensionFailed(const std::string& error_message); | 120 void OnUnpackExtensionFailed(const std::string& error_message); |
| 121 void OnProcessCrashed(); | 121 void OnProcessCrashed(); |
| 122 | 122 |
| 123 void ReportFailure(const std::string& message); | 123 void ReportFailure(const std::string& message); |
| 124 void ReportSuccess(); | 124 void ReportSuccess(); |
| 125 | 125 |
| 126 FilePath crx_path_; | 126 FilePath crx_path_; |
| 127 MessageLoop* file_loop_; | 127 ChromeThread::ID thread_identifier_; |
| 128 ResourceDispatcherHost* rdh_; | 128 ResourceDispatcherHost* rdh_; |
| 129 scoped_refptr<SandboxedExtensionUnpackerClient> client_; | 129 scoped_refptr<SandboxedExtensionUnpackerClient> client_; |
| 130 ScopedTempDir temp_dir_; | 130 ScopedTempDir temp_dir_; |
| 131 FilePath extension_root_; | 131 FilePath extension_root_; |
| 132 scoped_ptr<Extension> extension_; | 132 scoped_ptr<Extension> extension_; |
| 133 bool got_response_; | 133 bool got_response_; |
| 134 std::string public_key_; | 134 std::string public_key_; |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ | 137 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ |
| OLD | NEW |