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

Side by Side Diff: ui/file_manager/zip_archiver/cpp/compressor_io_javascript_stream.h

Issue 2815063002: Rename variable, class, function, etc from libarchive to minizip. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium OS Authors. All rights reserved. 1 // Copyright 2017 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 COMPRESSOR_IO_JAVSCRIPT_STREAM_H_ 5 #ifndef COMPRESSOR_IO_JAVSCRIPT_STREAM_H_
6 #define COMPRESSOR_IO_JAVSCRIPT_STREAM_H_ 6 #define COMPRESSOR_IO_JAVSCRIPT_STREAM_H_
7 7
8 #include <pthread.h> 8 #include <pthread.h>
9 #include <string> 9 #include <string>
10 10
11 #include "ppapi/cpp/instance_handle.h" 11 #include "ppapi/cpp/instance_handle.h"
12 #include "ppapi/cpp/var_array_buffer.h" 12 #include "ppapi/cpp/var_array_buffer.h"
13 #include "ppapi/utility/completion_callback_factory.h" 13 #include "ppapi/utility/completion_callback_factory.h"
14 #include "ppapi/utility/threading/lock.h" 14 #include "ppapi/utility/threading/lock.h"
15 #include "ppapi/utility/threading/simple_thread.h" 15 #include "ppapi/utility/threading/simple_thread.h"
16 16
17 #include "compressor_stream.h" 17 #include "compressor_stream.h"
18 #include "javascript_compressor_requestor_interface.h" 18 #include "javascript_compressor_requestor_interface.h"
19 19
20 // A namespace with constants used by CompressorArchiveLibarchive. 20 // A namespace with constants used by CompressorArchiveMinizip.
21 namespace compressor_stream_constants { 21 namespace compressor_stream_constants {
22 // We need at least 256KB for MiniZip. 22 // We need at least 256KB for MiniZip.
23 const int64_t kMaximumDataChunkSize = 512 * 1024; 23 const int64_t kMaximumDataChunkSize = 512 * 1024;
24 } // namespace compressor_archive_constants 24 } // namespace compressor_archive_constants
25 25
26 class CompressorIOJavaScriptStream : public CompressorStream { 26 class CompressorIOJavaScriptStream : public CompressorStream {
27 public: 27 public:
28 CompressorIOJavaScriptStream( 28 CompressorIOJavaScriptStream(
29 JavaScriptCompressorRequestorInterface* requestor); 29 JavaScriptCompressorRequestorInterface* requestor);
30 30
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 int64_t buffer_offset_; 74 int64_t buffer_offset_;
75 75
76 // The size of the data in buffer_. 76 // The size of the data in buffer_.
77 int64_t buffer_data_length_; 77 int64_t buffer_data_length_;
78 78
79 // The buffer that contains cached data. 79 // The buffer that contains cached data.
80 char* buffer_; 80 char* buffer_;
81 }; 81 };
82 82
83 #endif // COMPRESSOR_IO_JAVSCRIPT_STREAM_H_ 83 #endif // COMPRESSOR_IO_JAVSCRIPT_STREAM_H_
OLDNEW
« no previous file with comments | « ui/file_manager/zip_archiver/cpp/compressor_archive_libarchive.cc ('k') | ui/file_manager/zip_archiver/cpp/module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698