OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 from file_system import FileSystem, StatInfo, FileNotFoundError | 5 from file_system import FileSystem, StatInfo, FileNotFoundError |
6 from future import Future | 6 from future import Future |
7 from object_store_creator import ObjectStoreCreator | 7 from object_store_creator import ObjectStoreCreator |
8 | 8 |
9 class _AsyncUncachedFuture(object): | 9 class _AsyncUncachedFuture(object): |
10 def __init__(self, | 10 def __init__(self, |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 if not uncached: | 107 if not uncached: |
108 return Future(value=results) | 108 return Future(value=results) |
109 | 109 |
110 return Future(delegate=_AsyncUncachedFuture( | 110 return Future(delegate=_AsyncUncachedFuture( |
111 self._file_system.Read(uncached.keys(), binary=binary), | 111 self._file_system.Read(uncached.keys(), binary=binary), |
112 uncached, | 112 uncached, |
113 results, | 113 results, |
114 self, | 114 self, |
115 read_object_store)) | 115 read_object_store)) |
| 116 |
| 117 def GetIdentity(self): |
| 118 return self._file_system.GetIdentity() |
OLD | NEW |