| 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 // 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // TODO(ios): Add back members as more code is compiled. | 133 // TODO(ios): Add back members as more code is compiled. |
| 134 #if !defined(OS_IOS) | 134 #if !defined(OS_IOS) |
| 135 #if defined(ENABLE_CONFIGURATION_POLICY) | 135 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 136 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; | 136 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; |
| 137 #else | 137 #else |
| 138 scoped_ptr<policy::PolicyService> policy_service_; | 138 scoped_ptr<policy::PolicyService> policy_service_; |
| 139 #endif | 139 #endif |
| 140 scoped_ptr<ProfileManager> profile_manager_; | 140 scoped_ptr<ProfileManager> profile_manager_; |
| 141 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 141 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
| 142 |
| 143 #if defined(ENABLE_FULL_PRINTING) |
| 142 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 144 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
| 143 scoped_refptr<printing::PrintPreviewDialogController> | 145 scoped_refptr<printing::PrintPreviewDialogController> |
| 144 print_preview_dialog_controller_; | 146 print_preview_dialog_controller_; |
| 147 #endif |
| 148 |
| 145 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 149 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
| 146 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_; | 150 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_; |
| 147 scoped_refptr<SafeBrowsingService> sb_service_; | 151 scoped_refptr<SafeBrowsingService> sb_service_; |
| 148 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; | 152 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; |
| 149 #endif // !defined(OS_IOS) | 153 #endif // !defined(OS_IOS) |
| 150 | 154 |
| 151 #if !defined(OS_IOS) && !defined(OS_ANDROID) | 155 #if !defined(OS_IOS) && !defined(OS_ANDROID) |
| 152 scoped_ptr<chrome::StorageMonitor> storage_monitor_; | 156 scoped_ptr<chrome::StorageMonitor> storage_monitor_; |
| 153 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_; | 157 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_; |
| 154 #endif | 158 #endif |
| 155 | 159 |
| 156 // The following objects are not owned by TestingBrowserProcess: | 160 // The following objects are not owned by TestingBrowserProcess: |
| 157 PrefService* local_state_; | 161 PrefService* local_state_; |
| 158 IOThread* io_thread_; | 162 IOThread* io_thread_; |
| 159 net::URLRequestContextGetter* system_request_context_; | 163 net::URLRequestContextGetter* system_request_context_; |
| 160 | 164 |
| 161 scoped_ptr<BrowserProcessPlatformPart> platform_part_; | 165 scoped_ptr<BrowserProcessPlatformPart> platform_part_; |
| 162 | 166 |
| 163 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 167 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 164 }; | 168 }; |
| 165 | 169 |
| 166 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 170 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |