Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: chrome/installer/mini_installer/decompress.h

Issue 6693015: Switch out the setup api for using the cabinet API directly.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/installer/mini_installer/decompress.h
===================================================================
--- chrome/installer/mini_installer/decompress.h (revision 0)
+++ chrome/installer/mini_installer/decompress.h (revision 0)
@@ -0,0 +1,21 @@
+// 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.
+
+#ifndef CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_
+#define CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_
+#pragma once
+
+namespace mini_installer {
+
+// Same as the tool, expand.exe. Decompresses a file that was compressed
+// using Microsoft's MSCF compression algorithm.
+// The |source| pointer must be writable as internally the name and path
+// of the source file must be temporarily split up and we don't feel like
+// allocating extra buffers for this (in all cases of using this function,
+// the buffers are devoted to this purpose anyway).
+bool Expand(wchar_t* source, const wchar_t* destination);
amit 2011/03/15 20:54:35 if source is writable, why not take in the source
tommi (sloooow) - chröme 2011/03/16 02:43:30 The idea is similar to how CreateProcess works. T
amit 2011/03/16 15:50:26 Probably OK but CreateProcess has caused enough pa
tommi (sloooow) - chröme 2011/03/16 20:22:20 of course (doh)! done!
+
+} // namespace mini_installer
+
+#endif // CHROME_INSTALLER_MINI_INSTALLER_DECOMPRESS_H_
Property changes on: chrome\installer\mini_installer\decompress.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698