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 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_temp_dir.h" | 13 #include "base/scoped_temp_dir.h" |
14 #include "chrome/browser/utility_process_host.h" | 14 #include "chrome/browser/utility_process_host.h" |
15 | 15 |
16 class DictionaryValue; | 16 class DictionaryValue; |
17 class Extension; | 17 class Extension; |
18 class ResourceDispatcherHost; | 18 class ResourceDispatcherHost; |
19 | 19 |
20 class SandboxedExtensionUnpackerClient | 20 class SandboxedExtensionUnpackerClient |
21 : public base::RefCountedThreadSafe<SandboxedExtensionUnpackerClient> { | 21 : public base::RefCountedThreadSafe<SandboxedExtensionUnpackerClient> { |
22 public: | 22 public: |
23 // temp_dir - A temporary directory containing the results of the extension | 23 // temp_dir - A temporary directory containing the results of the extension |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 bool got_response_; | 225 bool got_response_; |
226 | 226 |
227 // The public key that was extracted from the CRX header. | 227 // The public key that was extracted from the CRX header. |
228 std::string public_key_; | 228 std::string public_key_; |
229 | 229 |
230 // Time at which unpacking started. Used to compute the time unpacking takes. | 230 // Time at which unpacking started. Used to compute the time unpacking takes. |
231 base::TimeTicks unpack_start_time_; | 231 base::TimeTicks unpack_start_time_; |
232 }; | 232 }; |
233 | 233 |
234 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ | 234 #endif // CHROME_BROWSER_EXTENSIONS_SANDBOXED_EXTENSION_UNPACKER_H_ |
OLD | NEW |