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

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

Issue 2807063002: Replace Libarchive with MiniZip. (Closed)
Patch Set: Fix a few nits. 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 2014 The Chromium OS Authors. All rights reserved. 1 // Copyright 2014 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 JAVASCRIPT_MESSAGE_SENDER_INTERFACE_H_ 5 #ifndef JAVASCRIPT_MESSAGE_SENDER_INTERFACE_H_
6 #define JAVASCRIPT_MESSAGE_SENDER_INTERFACE_H_ 6 #define JAVASCRIPT_MESSAGE_SENDER_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 // Creates and sends messages to JavaScript. Messages are send asynchronously. 10 // Creates and sends messages to JavaScript. Messages are send asynchronously.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const std::string& src_func, 50 const std::string& src_func,
51 const std::string& message) = 0; 51 const std::string& message) = 0;
52 52
53 virtual void SendCreateArchiveDone(int compressor_id) = 0; 53 virtual void SendCreateArchiveDone(int compressor_id) = 0;
54 54
55 virtual void SendReadFileChunk(int compressor_id_, 55 virtual void SendReadFileChunk(int compressor_id_,
56 int64_t file_size) = 0; 56 int64_t file_size) = 0;
57 57
58 virtual void SendWriteChunk(int compressor_id, 58 virtual void SendWriteChunk(int compressor_id,
59 const pp::VarArrayBuffer& array_buffer, 59 const pp::VarArrayBuffer& array_buffer,
60 int64_t offset,
60 int64_t length) = 0; 61 int64_t length) = 0;
61 62
62 virtual void SendAddToArchiveDone(int compressor_id) = 0; 63 virtual void SendAddToArchiveDone(int compressor_id) = 0;
63 64
64 virtual void SendCloseArchiveDone(int compressor_id) = 0; 65 virtual void SendCloseArchiveDone(int compressor_id) = 0;
65 }; 66 };
66 67
67 #define CONSOLE_LOG(fsid, rid, msg) \ 68 #define CONSOLE_LOG(fsid, rid, msg) \
68 SendConsoleLog(fsid, rid, __FILE__, __LINE__, __func__, msg) 69 SendConsoleLog(fsid, rid, __FILE__, __LINE__, __func__, msg)
69 70
70 #endif // JAVASCRIPT_MESSAGE_SENDER_INTERFACE_H_ 71 #endif // JAVASCRIPT_MESSAGE_SENDER_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698