OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 /** | 31 /** |
32 * @constructor | 32 * @constructor |
33 * @param {!WebInspector.IsolatedFileSystemManager} manager | 33 * @param {!WebInspector.IsolatedFileSystemManager} manager |
34 * @param {string} path | 34 * @param {string} path |
| 35 * @param {string} name |
| 36 * @param {string} rootURL |
35 */ | 37 */ |
36 WebInspector.IsolatedFileSystem = function(manager, path, name, rootURL) | 38 WebInspector.IsolatedFileSystem = function(manager, path, name, rootURL) |
37 { | 39 { |
38 this._manager = manager; | 40 this._manager = manager; |
39 this._path = path; | 41 this._path = path; |
40 this._name = name; | 42 this._name = name; |
41 this._rootURL = rootURL; | 43 this._rootURL = rootURL; |
42 } | 44 } |
43 | 45 |
44 WebInspector.IsolatedFileSystem.errorMessage = function(error) | 46 WebInspector.IsolatedFileSystem.errorMessage = function(error) |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 } | 593 } |
592 | 594 |
593 function errorHandler(error) | 595 function errorHandler(error) |
594 { | 596 { |
595 var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(erro
r); | 597 var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(erro
r); |
596 console.error(errorMessage + " when requesting entry '" + path + "'"
); | 598 console.error(errorMessage + " when requesting entry '" + path + "'"
); |
597 callback([]); | 599 callback([]); |
598 } | 600 } |
599 } | 601 } |
600 } | 602 } |
OLD | NEW |