| 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 'use strict'; | 5 'use strict'; | 
| 6 | 6 | 
| 7 /** | 7 /** | 
| 8  * A class that takes care of communication with NaCL and creates an archive. | 8  * A class that takes care of communication with NaCL and creates an archive. | 
| 9  * One instance of this class is created for each pack request. Since multiple | 9  * One instance of this class is created for each pack request. Since multiple | 
| 10  * compression requests can be in progress at the same time, each instance has | 10  * compression requests can be in progress at the same time, each instance has | 
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 507        ': ' + data[unpacker.request.Key.ERROR]);  // The error contains | 507        ': ' + data[unpacker.request.Key.ERROR]);  // The error contains | 
| 508                                                   // the '.' at the end. | 508                                                   // the '.' at the end. | 
| 509       this.onError_(this.compressorId_); | 509       this.onError_(this.compressorId_); | 
| 510       break; | 510       break; | 
| 511 | 511 | 
| 512     default: | 512     default: | 
| 513       console.error('Invalid NaCl operation: ' + operation + '.'); | 513       console.error('Invalid NaCl operation: ' + operation + '.'); | 
| 514       this.onError_(this.compressorId_); | 514       this.onError_(this.compressorId_); | 
| 515   } | 515   } | 
| 516 }; | 516 }; | 
| OLD | NEW | 
|---|