Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: chrome/common/extensions/docs/server2/caching_file_system.py

Issue 26538009: Docserver: make file_system a property of Create (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jeffrey Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 import sys 5 import sys
6 6
7 from file_system import FileSystem, StatInfo, FileNotFoundError 7 from file_system import FileSystem, StatInfo, FileNotFoundError
8 from future import Future 8 from future import Future
9 from object_store_creator import ObjectStoreCreator 9 from object_store_creator import ObjectStoreCreator
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 if not uncached: 116 if not uncached:
117 return Future(value=results) 117 return Future(value=results)
118 118
119 return Future(delegate=_AsyncUncachedFuture( 119 return Future(delegate=_AsyncUncachedFuture(
120 self._file_system.Read(uncached.keys(), binary=binary), 120 self._file_system.Read(uncached.keys(), binary=binary),
121 uncached, 121 uncached,
122 results, 122 results,
123 self, 123 self,
124 read_object_store)) 124 read_object_store))
125 125
126 def GetDebugString(self):
127 return ' of %s' % self._file_system
Jeffrey Yasskin 2013/10/14 21:24:17 Did you mean to remove GetDebugString() now that n
not at google - send to devlin 2013/10/14 21:26:28 yes, thanks. Done.
128
126 def GetIdentity(self): 129 def GetIdentity(self):
127 return self._file_system.GetIdentity() 130 return self._file_system.GetIdentity()
131
132 def __repr__(self):
133 return '<%s of %s>' % (type(self).__name__,
134 type(self._file_system).__name__)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698