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