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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // TODO(ios): Add back members as more code is compiled. | 148 // TODO(ios): Add back members as more code is compiled. |
149 #if !defined(OS_IOS) | 149 #if !defined(OS_IOS) |
150 #if defined(ENABLE_CONFIGURATION_POLICY) | 150 #if defined(ENABLE_CONFIGURATION_POLICY) |
151 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; | 151 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; |
152 #else | 152 #else |
153 scoped_ptr<policy::PolicyService> policy_service_; | 153 scoped_ptr<policy::PolicyService> policy_service_; |
154 #endif | 154 #endif |
155 scoped_ptr<ProfileManager> profile_manager_; | 155 scoped_ptr<ProfileManager> profile_manager_; |
156 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 156 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
157 | 157 |
| 158 #if defined(ENABLE_PRINTING) |
| 159 scoped_ptr<printing::PrintJobManager> print_job_manager_; |
| 160 #endif |
| 161 |
158 #if defined(ENABLE_FULL_PRINTING) | 162 #if defined(ENABLE_FULL_PRINTING) |
159 scoped_ptr<printing::PrintJobManager> print_job_manager_; | |
160 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 163 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
161 scoped_refptr<printing::PrintPreviewDialogController> | 164 scoped_refptr<printing::PrintPreviewDialogController> |
162 print_preview_dialog_controller_; | 165 print_preview_dialog_controller_; |
163 #endif | 166 #endif |
164 | 167 |
165 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 168 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
166 scoped_refptr<SafeBrowsingService> sb_service_; | 169 scoped_refptr<SafeBrowsingService> sb_service_; |
167 #endif // !defined(OS_IOS) | 170 #endif // !defined(OS_IOS) |
168 | 171 |
169 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; | 172 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 class TestingBrowserProcessInitializer { | 204 class TestingBrowserProcessInitializer { |
202 public: | 205 public: |
203 TestingBrowserProcessInitializer(); | 206 TestingBrowserProcessInitializer(); |
204 ~TestingBrowserProcessInitializer(); | 207 ~TestingBrowserProcessInitializer(); |
205 | 208 |
206 private: | 209 private: |
207 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 210 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
208 }; | 211 }; |
209 | 212 |
210 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 213 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |