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

Side by Side Diff: src/platform/update_engine/decompressing_file_writer.h

Issue 466036: AU: Beginnings of delta support (Closed)
Patch Set: Created 11 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium OS 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 UPDATE_ENGINE_DECOMPRESSING_FILE_WRITER_H__ 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_DECOMPRESSING_FILE_WRITER_H__
6 #define UPDATE_ENGINE_DECOMPRESSING_FILE_WRITER_H__ 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_DECOMPRESSING_FILE_WRITER_H__
7 7
8 #include <zlib.h> 8 #include <zlib.h>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "update_engine/file_writer.h" 10 #include "update_engine/file_writer.h"
11 11
12 // GzipDecompressingFileWriter is an implementation of FileWriter. It will 12 // GzipDecompressingFileWriter is an implementation of FileWriter. It will
13 // gzip decompress all data that is passed via Write() onto another FileWriter, 13 // gzip decompress all data that is passed via Write() onto another FileWriter,
14 // which is responsible for actually writing the data out. Calls to 14 // which is responsible for actually writing the data out. Calls to
15 // Open and Close are passed through to the other FileWriter. 15 // Open and Close are passed through to the other FileWriter.
16 16
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // This is for an optimization in Write(). We can keep this buffer around 51 // This is for an optimization in Write(). We can keep this buffer around
52 // in our class to avoid repeated calls to malloc(). 52 // in our class to avoid repeated calls to malloc().
53 std::vector<char> buffer_; 53 std::vector<char> buffer_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(GzipDecompressingFileWriter); 55 DISALLOW_COPY_AND_ASSIGN(GzipDecompressingFileWriter);
56 }; 56 };
57 57
58 } // namespace chromeos_update_engine 58 } // namespace chromeos_update_engine
59 59
60 #endif // UPDATE_ENGINE_DECOMPRESSING_FILE_WRITER_H__ 60 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_DECOMPRESSING_FILE_WRITER_H__
OLDNEW
« no previous file with comments | « src/platform/update_engine/action_processor_unittest.cc ('k') | src/platform/update_engine/decompressing_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698