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 * A class that takes care of communication between NaCl and archive volume. | 8 * A class that takes care of communication between NaCl and archive volume. |
9 * Its job is to handle communication with the naclModule. | 9 * Its job is to handle communication with the naclModule. |
10 * @constructor | 10 * @constructor |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 console.error(error.stack || error); | 299 console.error(error.stack || error); |
300 this.naclModule_.postMessage( | 300 this.naclModule_.postMessage( |
301 unpacker.request.createReadPassphraseErrorResponse( | 301 unpacker.request.createReadPassphraseErrorResponse( |
302 this.fileSystemId_, requestId)); | 302 this.fileSystemId_, requestId)); |
303 // TODO(mtomasz): Instead of unmounting just let the current operation | 303 // TODO(mtomasz): Instead of unmounting just let the current operation |
304 // fail and ask for password for another files. This is however | 304 // fail and ask for password for another files. This is however |
305 // impossible for now due to a bug in libarchive. | 305 // impossible for now due to a bug in libarchive. |
306 unpacker.app.unmountVolume(this.fileSystemId_, true); | 306 unpacker.app.unmountVolume(this.fileSystemId_, true); |
307 }.bind(this)); | 307 }.bind(this)); |
308 }; | 308 }; |
OLD | NEW |