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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * Defines the protocol used to communicate between JS and NaCL. | 8 * Defines the protocol used to communicate between JS and NaCL. |
9 * This should be consistent with cpp/request.h. | 9 * This should be consistent with cpp/request.h. |
10 * @namespace | 10 * @namespace |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 */ | 355 */ |
356 createCloseArchiveRequest: function(compressorId, hasError) { | 356 createCloseArchiveRequest: function(compressorId, hasError) { |
357 var request = {}; | 357 var request = {}; |
358 request[unpacker.request.Key.OPERATION] = | 358 request[unpacker.request.Key.OPERATION] = |
359 unpacker.request.Operation.CLOSE_ARCHIVE; | 359 unpacker.request.Operation.CLOSE_ARCHIVE; |
360 request[unpacker.request.Key.COMPRESSOR_ID] = compressorId; | 360 request[unpacker.request.Key.COMPRESSOR_ID] = compressorId; |
361 request[unpacker.request.Key.HAS_ERROR] = hasError; | 361 request[unpacker.request.Key.HAS_ERROR] = hasError; |
362 return request; | 362 return request; |
363 } | 363 } |
364 }; | 364 }; |
OLD | NEW |