| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium 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 var fileSystemNatives = requireNative('file_system_natives'); | 5 var fileSystemNatives = requireNative('file_system_natives'); |
| 6 | 6 |
| 7 var nameToIds = {}; | 7 var nameToIds = {}; |
| 8 var idsToEntries = {}; | 8 var idsToEntries = {}; |
| 9 | 9 |
| 10 function computeName(entry) { | 10 function computeName(entry) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 return id; | 43 return id; |
| 44 } | 44 } |
| 45 | 45 |
| 46 function getEntryById(id) { | 46 function getEntryById(id) { |
| 47 return idsToEntries[id]; | 47 return idsToEntries[id]; |
| 48 } | 48 } |
| 49 | 49 |
| 50 exports.registerEntry = registerEntry; | 50 exports.registerEntry = registerEntry; |
| 51 exports.getEntryId = getEntryId; | 51 exports.getEntryId = getEntryId; |
| 52 exports.getEntryById = getEntryById; | 52 exports.getEntryById = getEntryById; |
| OLD | NEW |