| 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 api_data_source import APIDataSource | 5 from api_data_source import APIDataSource |
| 6 from api_list_data_source import APIListDataSource | 6 from api_list_data_source import APIListDataSource |
| 7 from compiled_file_system import CompiledFileSystem | 7 from compiled_file_system import CompiledFileSystem |
| 8 from content_providers import ContentProviders | 8 from content_providers import ContentProviders |
| 9 from document_renderer import DocumentRenderer | 9 from document_renderer import DocumentRenderer |
| 10 from empty_dir_file_system import EmptyDirFileSystem | 10 from empty_dir_file_system import EmptyDirFileSystem |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 Creates FileSystem instances backed by GitHub. | 49 Creates FileSystem instances backed by GitHub. |
| 50 |base_path| | 50 |base_path| |
| 51 The path which all HTML is generated relative to. Usually this is / | 51 The path which all HTML is generated relative to. Usually this is / |
| 52 but some servlets need to override this. | 52 but some servlets need to override this. |
| 53 ''' | 53 ''' |
| 54 self.object_store_creator = object_store_creator | 54 self.object_store_creator = object_store_creator |
| 55 | 55 |
| 56 self.compiled_fs_factory = compiled_fs_factory | 56 self.compiled_fs_factory = compiled_fs_factory |
| 57 | 57 |
| 58 self.host_file_system_provider = host_file_system_provider | 58 self.host_file_system_provider = host_file_system_provider |
| 59 host_fs_at_trunk = host_file_system_provider.GetTrunk() | 59 host_fs_at_trunk = host_file_system_provider.GetMaster() |
| 60 | 60 |
| 61 self.github_file_system_provider = github_file_system_provider | 61 self.github_file_system_provider = github_file_system_provider |
| 62 self.gcs_file_system_provider = gcs_file_system_provider | 62 self.gcs_file_system_provider = gcs_file_system_provider |
| 63 | 63 |
| 64 assert base_path.startswith('/') and base_path.endswith('/') | 64 assert base_path.startswith('/') and base_path.endswith('/') |
| 65 self.base_path = base_path | 65 self.base_path = base_path |
| 66 | 66 |
| 67 self.host_file_system_iterator = HostFileSystemIterator( | 67 self.host_file_system_iterator = HostFileSystemIterator( |
| 68 host_file_system_provider, | 68 host_file_system_provider, |
| 69 branch_utility) | 69 branch_utility) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 store_type=TestObjectStore) | 124 store_type=TestObjectStore) |
| 125 host_file_system_provider = HostFileSystemProvider.ForLocal( | 125 host_file_system_provider = HostFileSystemProvider.ForLocal( |
| 126 object_store_creator) | 126 object_store_creator) |
| 127 return ServerInstance( | 127 return ServerInstance( |
| 128 object_store_creator, | 128 object_store_creator, |
| 129 CompiledFileSystem.Factory(object_store_creator), | 129 CompiledFileSystem.Factory(object_store_creator), |
| 130 TestBranchUtility.CreateWithCannedData(), | 130 TestBranchUtility.CreateWithCannedData(), |
| 131 host_file_system_provider, | 131 host_file_system_provider, |
| 132 GithubFileSystemProvider.ForEmpty(), | 132 GithubFileSystemProvider.ForEmpty(), |
| 133 CloudStorageFileSystemProvider(object_store_creator)) | 133 CloudStorageFileSystemProvider(object_store_creator)) |
| OLD | NEW |