OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 from HTMLParser import HTMLParser | 5 from HTMLParser import HTMLParser |
6 import mimetypes | 6 import mimetypes |
7 import logging | 7 import logging |
8 import os | 8 import os |
9 | 9 |
10 from compiled_file_system import SingleFile | 10 from compiled_file_system import SingleFile |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 # Check for a zip file first, if zip is enabled. | 78 # Check for a zip file first, if zip is enabled. |
79 if self._directory_zipper and ext == '.zip': | 79 if self._directory_zipper and ext == '.zip': |
80 zip_future = self._directory_zipper.Zip(base) | 80 zip_future = self._directory_zipper.Zip(base) |
81 return Future(delegate=Gettable( | 81 return Future(delegate=Gettable( |
82 lambda: ContentAndType(zip_future.Get(), 'application/zip'))) | 82 lambda: ContentAndType(zip_future.Get(), 'application/zip'))) |
83 | 83 |
84 return self._content_cache.GetFromFile(path, binary=True) | 84 return self._content_cache.GetFromFile(path, binary=True) |
85 | 85 |
86 def Cron(self): | 86 def Cron(self): |
87 # TODO(kalman): Implement. | 87 # TODO(kalman): Implement by walking over the whole filesystem and |
88 pass | 88 # compiling all of the content. |
| 89 return Future(value=()) |
OLD | NEW |