| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef JAVASCRIPT_COMPRESSOR_REQUESTOR_INTERFACE_H_ | |
| 6 #define JAVASCRIPT_COMPRESSOR_REQUESTOR_INTERFACE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 // Makes requests from Compressor to JavaScript. | |
| 11 class JavaScriptCompressorRequestorInterface { | |
| 12 public: | |
| 13 virtual ~JavaScriptCompressorRequestorInterface() {} | |
| 14 | |
| 15 virtual void WriteChunkRequest(int64_t length, | |
| 16 const pp::VarArrayBuffer& buffer) = 0; | |
| 17 | |
| 18 virtual void ReadFileChunkRequest(int64_t length) = 0; | |
| 19 }; | |
| 20 | |
| 21 #endif // JAVASCRIPT_COMPRESSOR_REQUESTOR_INTERFACE_H_ | |
| OLD | NEW |