OLD | NEW |
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 Loading... |
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__ |
OLD | NEW |