| Index: chrome/browser/extensions/sandboxed_extension_unpacker.h
|
| diff --git a/chrome/browser/extensions/sandboxed_extension_unpacker.h b/chrome/browser/extensions/sandboxed_extension_unpacker.h
|
| index e47b26c513abe87fe844ad601e40337296850d2b..5640d773f4562f81f3114da28732b302584cf103 100644
|
| --- a/chrome/browser/extensions/sandboxed_extension_unpacker.h
|
| +++ b/chrome/browser/extensions/sandboxed_extension_unpacker.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -93,7 +93,6 @@ class SandboxedExtensionUnpacker : public UtilityProcessHost::Client {
|
| // |client| with the result. If |rdh| is provided, unpacking is done in a
|
| // sandboxed subprocess. Otherwise, it is done in-process.
|
| SandboxedExtensionUnpacker(const FilePath& crx_path,
|
| - const FilePath& temp_path,
|
| ResourceDispatcherHost* rdh,
|
| SandboxedExtensionUnpackerClient* cilent);
|
|
|
| @@ -104,9 +103,18 @@ class SandboxedExtensionUnpacker : public UtilityProcessHost::Client {
|
| class ProcessHostClient;
|
| friend class ProcessHostClient;
|
| friend class SandboxedExtensionUnpackerTest;
|
| + FRIEND_TEST_ALL_PREFIXES(SandboxedExtensionUnpackerTest,
|
| + CreateTempDirectory);
|
|
|
| virtual ~SandboxedExtensionUnpacker();
|
|
|
| + // Creatye a temporary directory to unpack the extension in.
|
| + // |unpack_path_keys| is a list of PathService keys in which
|
| + // to place the unpack directory. A list is used in case some
|
| + // directories are not writable for any reason.
|
| + virtual bool CreateTempDirectory(const int unpack_path_keys[],
|
| + size_t unpack_path_keys_size);
|
| +
|
| // Validates the signature of the extension and extract the key to
|
| // |public_key_|. Returns true if the signature validates, false otherwise.
|
| //
|
| @@ -141,9 +149,6 @@ class SandboxedExtensionUnpacker : public UtilityProcessHost::Client {
|
| // The path to the CRX to unpack.
|
| FilePath crx_path_;
|
|
|
| - // A path to a temp dir to unpack in.
|
| - FilePath temp_path_;
|
| -
|
| // Our client's thread. This is the thread we respond on.
|
| BrowserThread::ID thread_identifier_;
|
|
|
|
|