| 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 REQUEST_H_ | 5 #ifndef REQUEST_H_ |
| 6 #define REQUEST_H_ | 6 #define REQUEST_H_ |
| 7 | 7 |
| 8 #include "ppapi/cpp/var_array_buffer.h" | 8 #include "ppapi/cpp/var_array_buffer.h" |
| 9 #include "ppapi/cpp/var_dictionary.h" | 9 #include "ppapi/cpp/var_dictionary.h" |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 const pp::VarArrayBuffer& array_buffer, | 133 const pp::VarArrayBuffer& array_buffer, |
| 134 bool has_more_data); | 134 bool has_more_data); |
| 135 | 135 |
| 136 pp::VarDictionary CreateCreateArchiveDoneResponse(int compressor_id); | 136 pp::VarDictionary CreateCreateArchiveDoneResponse(int compressor_id); |
| 137 | 137 |
| 138 pp::VarDictionary CreateReadFileChunkRequest(int compressor_id, | 138 pp::VarDictionary CreateReadFileChunkRequest(int compressor_id, |
| 139 int64_t length); | 139 int64_t length); |
| 140 | 140 |
| 141 pp::VarDictionary CreateWriteChunkRequest(int compressor_id, | 141 pp::VarDictionary CreateWriteChunkRequest(int compressor_id, |
| 142 const pp::VarArrayBuffer& array_buffer
, | 142 const pp::VarArrayBuffer& array_buffer
, |
| 143 int64_t offset, |
| 143 int64_t length); | 144 int64_t length); |
| 144 | 145 |
| 145 pp::VarDictionary CreateAddToArchiveDoneResponse(int compressor_id); | 146 pp::VarDictionary CreateAddToArchiveDoneResponse(int compressor_id); |
| 146 | 147 |
| 147 pp::VarDictionary CreateCloseArchiveDoneResponse(int compressor_id); | 148 pp::VarDictionary CreateCloseArchiveDoneResponse(int compressor_id); |
| 148 | 149 |
| 149 // Creates a file system error. | 150 // Creates a file system error. |
| 150 pp::VarDictionary CreateFileSystemError(const std::string& file_system_id, | 151 pp::VarDictionary CreateFileSystemError(const std::string& file_system_id, |
| 151 const std::string& request_id, | 152 const std::string& request_id, |
| 152 const std::string& error); | 153 const std::string& error); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 164 const std::string& error); | 165 const std::string& error); |
| 165 | 166 |
| 166 // Obtains a int64_t from a string value inside dictionary based on a | 167 // Obtains a int64_t from a string value inside dictionary based on a |
| 167 // request::Key. | 168 // request::Key. |
| 168 int64_t GetInt64FromString(const pp::VarDictionary& dictionary, | 169 int64_t GetInt64FromString(const pp::VarDictionary& dictionary, |
| 169 const std::string& request_key); | 170 const std::string& request_key); |
| 170 | 171 |
| 171 } // namespace request | 172 } // namespace request |
| 172 | 173 |
| 173 #endif // REQUEST_H_ | 174 #endif // REQUEST_H_ |
| OLD | NEW |