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

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

Issue 46243003: Docserver: Add an APIModels class which tracks both the list of available APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yoz Created 7 years, 1 month 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
« no previous file with comments | « chrome/common/extensions/docs/server2/api_models_test.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 api_models import APIModels
7 from appengine_wrappers import IsDevServer 8 from appengine_wrappers import IsDevServer
8 from availability_finder import AvailabilityFinder 9 from availability_finder import AvailabilityFinder
9 from compiled_file_system import CompiledFileSystem 10 from compiled_file_system import CompiledFileSystem
10 from directory_zipper import DirectoryZipper 11 from directory_zipper import DirectoryZipper
11 from empty_dir_file_system import EmptyDirFileSystem 12 from empty_dir_file_system import EmptyDirFileSystem
12 from features_bundle import FeaturesBundle 13 from features_bundle import FeaturesBundle
13 from github_file_system_provider import GithubFileSystemProvider 14 from github_file_system_provider import GithubFileSystemProvider
14 from host_file_system_provider import HostFileSystemProvider 15 from host_file_system_provider import HostFileSystemProvider
15 from host_file_system_iterator import HostFileSystemIterator 16 from host_file_system_iterator import HostFileSystemIterator
16 from intro_data_source import IntroDataSource 17 from intro_data_source import IntroDataSource
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 67
67 self.host_file_system_iterator = HostFileSystemIterator( 68 self.host_file_system_iterator = HostFileSystemIterator(
68 host_file_system_provider, 69 host_file_system_provider,
69 branch_utility) 70 branch_utility)
70 71
71 self.features_bundle = FeaturesBundle( 72 self.features_bundle = FeaturesBundle(
72 host_fs_at_trunk, 73 host_fs_at_trunk,
73 self.compiled_fs_factory, 74 self.compiled_fs_factory,
74 self.object_store_creator) 75 self.object_store_creator)
75 76
77 self.api_models = APIModels(
78 self.features_bundle,
79 self.compiled_fs_factory,
80 host_fs_at_trunk)
81
76 self.availability_finder = AvailabilityFinder( 82 self.availability_finder = AvailabilityFinder(
77 branch_utility, 83 branch_utility,
78 compiled_fs_factory, 84 compiled_fs_factory,
79 self.host_file_system_iterator, 85 self.host_file_system_iterator,
80 host_fs_at_trunk, 86 host_fs_at_trunk,
81 object_store_creator) 87 object_store_creator)
82 88
83 self.api_list_data_source_factory = APIListDataSource.Factory( 89 self.api_list_data_source_factory = APIListDataSource.Factory(
84 self.compiled_fs_factory, 90 self.compiled_fs_factory,
85 host_fs_at_trunk, 91 host_fs_at_trunk,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 object_store_creator = ObjectStoreCreator(start_empty=False, 182 object_store_creator = ObjectStoreCreator(start_empty=False,
177 store_type=TestObjectStore) 183 store_type=TestObjectStore)
178 host_file_system_provider = HostFileSystemProvider.ForLocal( 184 host_file_system_provider = HostFileSystemProvider.ForLocal(
179 object_store_creator) 185 object_store_creator)
180 return ServerInstance( 186 return ServerInstance(
181 object_store_creator, 187 object_store_creator,
182 CompiledFileSystem.Factory(object_store_creator), 188 CompiledFileSystem.Factory(object_store_creator),
183 TestBranchUtility.CreateWithCannedData(), 189 TestBranchUtility.CreateWithCannedData(),
184 host_file_system_provider, 190 host_file_system_provider,
185 GithubFileSystemProvider.ForEmpty()) 191 GithubFileSystemProvider.ForEmpty())
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/api_models_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698