OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // When each service is created, we set a flag indicating this. At this point, | 5 // When each service is created, we set a flag indicating this. At this point, |
6 // the service initialization could fail or succeed. This allows us to remember | 6 // the service initialization could fail or succeed. This allows us to remember |
7 // if we tried to create a service, and not try creating it over and over if | 7 // if we tried to create a service, and not try creating it over and over if |
8 // the creation failed. | 8 // the creation failed. |
9 | 9 |
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 base::Thread* process_launcher_thread(); | 50 base::Thread* process_launcher_thread(); |
51 | 51 |
52 // BrowserProcess methods | 52 // BrowserProcess methods |
53 virtual void EndSession() OVERRIDE; | 53 virtual void EndSession() OVERRIDE; |
54 virtual ResourceDispatcherHost* resource_dispatcher_host() OVERRIDE; | 54 virtual ResourceDispatcherHost* resource_dispatcher_host() OVERRIDE; |
55 virtual MetricsService* metrics_service() OVERRIDE; | 55 virtual MetricsService* metrics_service() OVERRIDE; |
56 virtual IOThread* io_thread() OVERRIDE; | 56 virtual IOThread* io_thread() OVERRIDE; |
57 virtual base::Thread* file_thread() OVERRIDE; | 57 virtual base::Thread* file_thread() OVERRIDE; |
58 virtual base::Thread* db_thread() OVERRIDE; | 58 virtual base::Thread* db_thread() OVERRIDE; |
59 virtual base::Thread* cache_thread() OVERRIDE; | 59 virtual base::Thread* cache_thread() OVERRIDE; |
| 60 virtual base::Thread* appcache_thread() OVERRIDE; |
60 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 61 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
61 #if defined(OS_CHROMEOS) | 62 #if defined(OS_CHROMEOS) |
62 virtual base::Thread* web_socket_proxy_thread() OVERRIDE; | 63 virtual base::Thread* web_socket_proxy_thread() OVERRIDE; |
63 #endif | 64 #endif |
64 virtual ProfileManager* profile_manager() OVERRIDE; | 65 virtual ProfileManager* profile_manager() OVERRIDE; |
65 virtual PrefService* local_state() OVERRIDE; | 66 virtual PrefService* local_state() OVERRIDE; |
66 virtual DevToolsManager* devtools_manager() OVERRIDE; | 67 virtual DevToolsManager* devtools_manager() OVERRIDE; |
67 virtual SidebarManager* sidebar_manager() OVERRIDE; | 68 virtual SidebarManager* sidebar_manager() OVERRIDE; |
68 virtual ui::Clipboard* clipboard() OVERRIDE; | 69 virtual ui::Clipboard* clipboard() OVERRIDE; |
69 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 70 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 void CreateResourceDispatcherHost(); | 137 void CreateResourceDispatcherHost(); |
137 void CreateMetricsService(); | 138 void CreateMetricsService(); |
138 | 139 |
139 void CreateIOThread(); | 140 void CreateIOThread(); |
140 static void CleanupOnIOThread(); | 141 static void CleanupOnIOThread(); |
141 | 142 |
142 void CreateFileThread(); | 143 void CreateFileThread(); |
143 void CreateDBThread(); | 144 void CreateDBThread(); |
144 void CreateProcessLauncherThread(); | 145 void CreateProcessLauncherThread(); |
145 void CreateCacheThread(); | 146 void CreateCacheThread(); |
| 147 void CreateAppCacheThread(); |
146 void CreateGpuThread(); | 148 void CreateGpuThread(); |
147 void CreateWatchdogThread(); | 149 void CreateWatchdogThread(); |
148 #if defined(OS_CHROMEOS) | 150 #if defined(OS_CHROMEOS) |
149 void CreateWebSocketProxyThread(); | 151 void CreateWebSocketProxyThread(); |
150 #endif | 152 #endif |
151 void CreateTemplateURLService(); | 153 void CreateTemplateURLService(); |
152 void CreateProfileManager(); | 154 void CreateProfileManager(); |
153 void CreateWebDataService(); | 155 void CreateWebDataService(); |
154 void CreateLocalState(); | 156 void CreateLocalState(); |
155 void CreateViewedPageTracker(); | 157 void CreateViewedPageTracker(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 191 |
190 bool created_db_thread_; | 192 bool created_db_thread_; |
191 scoped_ptr<base::Thread> db_thread_; | 193 scoped_ptr<base::Thread> db_thread_; |
192 | 194 |
193 bool created_process_launcher_thread_; | 195 bool created_process_launcher_thread_; |
194 scoped_ptr<base::Thread> process_launcher_thread_; | 196 scoped_ptr<base::Thread> process_launcher_thread_; |
195 | 197 |
196 bool created_cache_thread_; | 198 bool created_cache_thread_; |
197 scoped_ptr<base::Thread> cache_thread_; | 199 scoped_ptr<base::Thread> cache_thread_; |
198 | 200 |
| 201 bool created_appcache_thread_; |
| 202 scoped_ptr<base::Thread> appcache_thread_; |
| 203 |
199 bool created_watchdog_thread_; | 204 bool created_watchdog_thread_; |
200 scoped_ptr<WatchDogThread> watchdog_thread_; | 205 scoped_ptr<WatchDogThread> watchdog_thread_; |
201 | 206 |
202 #if defined(OS_CHROMEOS) | 207 #if defined(OS_CHROMEOS) |
203 bool created_web_socket_proxy_thread_; | 208 bool created_web_socket_proxy_thread_; |
204 scoped_ptr<base::Thread> web_socket_proxy_thread_; | 209 scoped_ptr<base::Thread> web_socket_proxy_thread_; |
205 #endif | 210 #endif |
206 | 211 |
207 bool created_profile_manager_; | 212 bool created_profile_manager_; |
208 scoped_ptr<ProfileManager> profile_manager_; | 213 scoped_ptr<ProfileManager> profile_manager_; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 #if !defined(OS_CHROMEOS) | 326 #if !defined(OS_CHROMEOS) |
322 scoped_ptr<ComponentUpdateService> component_updater_; | 327 scoped_ptr<ComponentUpdateService> component_updater_; |
323 | 328 |
324 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; | 329 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; |
325 #endif | 330 #endif |
326 | 331 |
327 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 332 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
328 }; | 333 }; |
329 | 334 |
330 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 335 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
OLD | NEW |