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

Unified Diff: import/cross/tar_processor.h

Issue 159129: Refactor tar code to support long names.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: Created 11 years, 5 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: import/cross/tar_processor.h
===================================================================
--- import/cross/tar_processor.h (revision 21085)
+++ import/cross/tar_processor.h (working copy)
@@ -47,6 +47,7 @@
#define O3D_IMPORT_CROSS_TAR_PROCESSOR_H_
#include "base/basictypes.h"
+#include "core/cross/types.h"
#include "import/cross/memory_stream.h"
#include "import/cross/archive_processor.h"
@@ -58,6 +59,7 @@
explicit TarProcessor(ArchiveCallbackClient *callback_client)
: callback_client_(callback_client),
header_bytes_read_(0),
+ getting_filename_(false),
file_bytes_to_read_(0) {}
virtual ~TarProcessor() {}
@@ -72,7 +74,9 @@
ArchiveCallbackClient *callback_client_;
size_t header_bytes_read_;
- char header_[TAR_HEADER_SIZE];
+ char header_[TAR_HEADER_SIZE];
+ bool getting_filename_;
+ String file_name_;
// Initialized to total number of file bytes,
// including zero padding up to block size

Powered by Google App Engine
This is Rietveld 408576698