| OLD | NEW |
| 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_H_ | 5 #ifndef COMPRESSOR_H_ |
| 6 #define COMPRESSOR_H_ | 6 #define COMPRESSOR_H_ |
| 7 | 7 |
| 8 #include <ctime> | 8 #include <ctime> |
| 9 #include <pthread.h> | 9 #include <pthread.h> |
| 10 | 10 |
| 11 #include "archive.h" | |
| 12 #include "ppapi/cpp/instance_handle.h" | 11 #include "ppapi/cpp/instance_handle.h" |
| 13 #include "ppapi/cpp/var_array_buffer.h" | 12 #include "ppapi/cpp/var_array_buffer.h" |
| 14 #include "ppapi/cpp/var_dictionary.h" | 13 #include "ppapi/cpp/var_dictionary.h" |
| 15 #include "ppapi/utility/completion_callback_factory.h" | 14 #include "ppapi/utility/completion_callback_factory.h" |
| 16 #include "ppapi/utility/threading/simple_thread.h" | 15 #include "ppapi/utility/threading/simple_thread.h" |
| 17 | 16 |
| 18 #include "compressor_archive.h" | 17 #include "compressor_archive.h" |
| 19 #include "compressor_stream.h" | 18 #include "compressor_stream.h" |
| 20 #include "javascript_compressor_requestor_interface.h" | 19 #include "javascript_compressor_requestor_interface.h" |
| 21 #include "javascript_message_sender_interface.h" | 20 #include "javascript_message_sender_interface.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 JavaScriptCompressorRequestorInterface* requestor_; | 83 JavaScriptCompressorRequestorInterface* requestor_; |
| 85 | 84 |
| 86 // Libarchive wrapper instance per compressor, shared across all operations. | 85 // Libarchive wrapper instance per compressor, shared across all operations. |
| 87 CompressorArchive* compressor_archive_; | 86 CompressorArchive* compressor_archive_; |
| 88 | 87 |
| 89 // An instance that takes care of all IO operations. | 88 // An instance that takes care of all IO operations. |
| 90 CompressorStream* compressor_stream_; | 89 CompressorStream* compressor_stream_; |
| 91 }; | 90 }; |
| 92 | 91 |
| 93 #endif /// COMPRESSOR_H_ | 92 #endif /// COMPRESSOR_H_ |
| OLD | NEW |