| 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 fnmatch import fnmatch | 5 from fnmatch import fnmatch |
| 6 import mimetypes | 6 import mimetypes |
| 7 import traceback | 7 import traceback |
| 8 import os | 8 import os |
| 9 | 9 |
| 10 from api_data_source import APIDataSource | 10 from api_data_source import APIDataSource |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 base_path) | 123 base_path) |
| 124 | 124 |
| 125 self.example_zipper = ExampleZipper( | 125 self.example_zipper = ExampleZipper( |
| 126 self.compiled_host_fs_factory, | 126 self.compiled_host_fs_factory, |
| 127 svn_constants.DOCS_PATH) | 127 svn_constants.DOCS_PATH) |
| 128 | 128 |
| 129 self.path_canonicalizer = PathCanonicalizer( | 129 self.path_canonicalizer = PathCanonicalizer( |
| 130 channel, | 130 channel, |
| 131 self.compiled_host_fs_factory) | 131 self.compiled_host_fs_factory) |
| 132 | 132 |
| 133 # TODO(kalman): delete content cache. |
| 133 self.content_cache = self.compiled_host_fs_factory.CreateIdentity( | 134 self.content_cache = self.compiled_host_fs_factory.CreateIdentity( |
| 134 ServerInstance) | 135 ServerInstance) |
| 135 | 136 |
| 136 self.redirector = Redirector( | 137 self.redirector = Redirector( |
| 137 self.compiled_host_fs_factory, | 138 self.compiled_host_fs_factory, |
| 138 self.host_file_system, | 139 self.host_file_system, |
| 139 svn_constants.PUBLIC_TEMPLATE_PATH) | 140 svn_constants.PUBLIC_TEMPLATE_PATH) |
| 140 | 141 |
| 141 @staticmethod | 142 @staticmethod |
| 142 def ForTest(file_system): | 143 def ForTest(file_system): |
| (...skipping 21 matching lines...) Expand all Loading... |
| 164 'trunk') | 165 'trunk') |
| 165 return ServerInstance( | 166 return ServerInstance( |
| 166 channel, | 167 channel, |
| 167 object_store_creator, | 168 object_store_creator, |
| 168 trunk_file_system, | 169 trunk_file_system, |
| 169 EmptyDirFileSystem(), | 170 EmptyDirFileSystem(), |
| 170 '', | 171 '', |
| 171 CompiledFileSystem.Factory(trunk_file_system, object_store_creator), | 172 CompiledFileSystem.Factory(trunk_file_system, object_store_creator), |
| 172 TestBranchUtility.CreateWithCannedData(), | 173 TestBranchUtility.CreateWithCannedData(), |
| 173 host_file_system_creator) | 174 host_file_system_creator) |
| OLD | NEW |