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

Side by Side Diff: ui/file_manager/zip_archiver/cpp/compressor.cc

Issue 2818673004: Rename filenames that end with libarchive with 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.
mtomasz 2017/04/14 04:40:08 I just noticed that the header of all files refers
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 #include "compressor.h" 5 #include "compressor.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 #include <ctime> 8 #include <ctime>
9 #include <sstream> 9 #include <sstream>
10 10
11 #include "compressor_archive_libarchive.h" 11 #include "compressor_archive_minizip.h"
12 #include "compressor_io_javascript_stream.h" 12 #include "compressor_io_javascript_stream.h"
13 #include "request.h" 13 #include "request.h"
14 14
15 namespace { 15 namespace {
16 16
17 // An internal implementation of JavaScriptCompressorRequestorInterface. 17 // An internal implementation of JavaScriptCompressorRequestorInterface.
18 class JavaScriptCompressorRequestor : public JavaScriptCompressorRequestorInterf ace { 18 class JavaScriptCompressorRequestor : public JavaScriptCompressorRequestorInterf ace {
19 public: 19 public:
20 explicit JavaScriptCompressorRequestor(Compressor* compressor) : 20 explicit JavaScriptCompressorRequestor(Compressor* compressor) :
21 compressor_(compressor) {} 21 compressor_(compressor) {}
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void Compressor::CloseArchiveCallback(int32_t, bool has_error) { 152 void Compressor::CloseArchiveCallback(int32_t, bool has_error) {
153 if (!compressor_archive_->CloseArchive(has_error)) { 153 if (!compressor_archive_->CloseArchive(has_error)) {
154 message_sender_->SendCompressorError( 154 message_sender_->SendCompressorError(
155 compressor_id_, 155 compressor_id_,
156 compressor_archive_->error_message()); 156 compressor_archive_->error_message());
157 return; 157 return;
158 } 158 }
159 message_sender_->SendCloseArchiveDone(compressor_id_); 159 message_sender_->SendCloseArchiveDone(compressor_id_);
160 } 160 }
OLDNEW
« no previous file with comments | « ui/file_manager/zip_archiver/cpp/BUILD.gn ('k') | ui/file_manager/zip_archiver/cpp/compressor_archive_libarchive.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698