| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 virtual RenderWidgetSnapshotTaker* GetRenderWidgetSnapshotTaker() OVERRIDE; | 62 virtual RenderWidgetSnapshotTaker* GetRenderWidgetSnapshotTaker() OVERRIDE; |
| 63 virtual BackgroundModeManager* background_mode_manager() OVERRIDE; | 63 virtual BackgroundModeManager* background_mode_manager() OVERRIDE; |
| 64 virtual StatusTray* status_tray() OVERRIDE; | 64 virtual StatusTray* status_tray() OVERRIDE; |
| 65 virtual SafeBrowsingService* safe_browsing_service() OVERRIDE; | 65 virtual SafeBrowsingService* safe_browsing_service() OVERRIDE; |
| 66 virtual safe_browsing::ClientSideDetectionService* | 66 virtual safe_browsing::ClientSideDetectionService* |
| 67 safe_browsing_detection_service() OVERRIDE; | 67 safe_browsing_detection_service() OVERRIDE; |
| 68 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 68 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
| 69 | 69 |
| 70 #if defined(OS_CHROMEOS) | 70 #if defined(OS_CHROMEOS) |
| 71 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; | 71 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; |
| 72 virtual chromeos::DeviceOAuth2TokenService* device_oauth2_token_service() |
| 73 OVERRIDE; |
| 72 #endif // defined(OS_CHROMEOS) | 74 #endif // defined(OS_CHROMEOS) |
| 73 | 75 |
| 74 virtual extensions::EventRouterForwarder* | 76 virtual extensions::EventRouterForwarder* |
| 75 extension_event_router_forwarder() OVERRIDE; | 77 extension_event_router_forwarder() OVERRIDE; |
| 76 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; | 78 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; |
| 77 #if defined(ENABLE_MESSAGE_CENTER) | 79 #if defined(ENABLE_MESSAGE_CENTER) |
| 78 virtual message_center::MessageCenter* message_center() OVERRIDE; | 80 virtual message_center::MessageCenter* message_center() OVERRIDE; |
| 79 #endif | 81 #endif |
| 80 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; | 82 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; |
| 81 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; | 83 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 150 |
| 149 // The following objects are not owned by TestingBrowserProcess: | 151 // The following objects are not owned by TestingBrowserProcess: |
| 150 PrefService* local_state_; | 152 PrefService* local_state_; |
| 151 IOThread* io_thread_; | 153 IOThread* io_thread_; |
| 152 net::URLRequestContextGetter* system_request_context_; | 154 net::URLRequestContextGetter* system_request_context_; |
| 153 | 155 |
| 154 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 156 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 155 }; | 157 }; |
| 156 | 158 |
| 157 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 159 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |