| 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 // An implementation of BrowserProcess for unit tests that fails for most | 5 // An implementation of BrowserProcess for unit tests that fails for most |
| 6 // services. By preventing creation of services, we reduce dependencies and | 6 // services. By preventing creation of services, we reduce dependencies and |
| 7 // keep the profile clean. Clients of this class must handle the NULL return | 7 // keep the profile clean. Clients of this class must handle the NULL return |
| 8 // value, however. | 8 // value, however. |
| 9 | 9 |
| 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual ~TestingBrowserProcess(); | 49 virtual ~TestingBrowserProcess(); |
| 50 | 50 |
| 51 virtual void EndSession() OVERRIDE; | 51 virtual void EndSession() OVERRIDE; |
| 52 virtual ResourceDispatcherHost* resource_dispatcher_host() OVERRIDE; | 52 virtual ResourceDispatcherHost* resource_dispatcher_host() OVERRIDE; |
| 53 virtual MetricsService* metrics_service() OVERRIDE; | 53 virtual MetricsService* metrics_service() OVERRIDE; |
| 54 virtual IOThread* io_thread() OVERRIDE; | 54 virtual IOThread* io_thread() OVERRIDE; |
| 55 | 55 |
| 56 virtual base::Thread* file_thread() OVERRIDE; | 56 virtual base::Thread* file_thread() OVERRIDE; |
| 57 virtual base::Thread* db_thread() OVERRIDE; | 57 virtual base::Thread* db_thread() OVERRIDE; |
| 58 virtual base::Thread* cache_thread() OVERRIDE; | 58 virtual base::Thread* cache_thread() OVERRIDE; |
| 59 virtual base::Thread* appcache_thread() OVERRIDE; |
| 59 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 60 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
| 60 | 61 |
| 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 | 65 |
| 65 virtual ProfileManager* profile_manager() OVERRIDE; | 66 virtual ProfileManager* profile_manager() OVERRIDE; |
| 66 virtual PrefService* local_state() OVERRIDE; | 67 virtual PrefService* local_state() OVERRIDE; |
| 67 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; | 68 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; |
| 68 virtual IconManager* icon_manager() OVERRIDE; | 69 virtual IconManager* icon_manager() OVERRIDE; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 148 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
| 148 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 149 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
| 149 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 150 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
| 150 IOThread* io_thread_; | 151 IOThread* io_thread_; |
| 151 scoped_ptr<DevToolsManager> devtools_manager_; | 152 scoped_ptr<DevToolsManager> devtools_manager_; |
| 152 | 153 |
| 153 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 154 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 157 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |