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