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_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 virtual DevToolsManager* devtools_manager(); | 74 virtual DevToolsManager* devtools_manager(); |
75 | 75 |
76 virtual SidebarManager* sidebar_manager(); | 76 virtual SidebarManager* sidebar_manager(); |
77 | 77 |
78 virtual TabCloseableStateWatcher* tab_closeable_state_watcher(); | 78 virtual TabCloseableStateWatcher* tab_closeable_state_watcher(); |
79 | 79 |
80 virtual safe_browsing::ClientSideDetectionService* | 80 virtual safe_browsing::ClientSideDetectionService* |
81 safe_browsing_detection_service(); | 81 safe_browsing_detection_service(); |
82 | 82 |
| 83 virtual scoped_refptr<URLRequestContextGetter> system_request_context(); |
| 84 |
| 85 #if defined(OS_CHROMEOS) |
| 86 virtual chromeos::ProxyConfigServiceImpl* |
| 87 chromeos_proxy_config_service_impl(); |
| 88 #endif // defined(OS_CHROMEOS) |
| 89 |
83 virtual ui::Clipboard* clipboard(); | 90 virtual ui::Clipboard* clipboard(); |
84 | 91 |
85 virtual ExtensionEventRouterForwarder* extension_event_router_forwarder(); | 92 virtual ExtensionEventRouterForwarder* extension_event_router_forwarder(); |
86 | 93 |
87 virtual NotificationUIManager* notification_ui_manager(); | 94 virtual NotificationUIManager* notification_ui_manager(); |
88 | 95 |
89 virtual GoogleURLTracker* google_url_tracker(); | 96 virtual GoogleURLTracker* google_url_tracker(); |
90 | 97 |
91 virtual IntranetRedirectDetector* intranet_redirect_detector(); | 98 virtual IntranetRedirectDetector* intranet_redirect_detector(); |
92 | 99 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 170 |
164 private: | 171 private: |
165 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 172 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
166 // After the transition is over, we should just stack-allocate it. | 173 // After the transition is over, we should just stack-allocate it. |
167 scoped_ptr<TestingBrowserProcess> browser_process_; | 174 scoped_ptr<TestingBrowserProcess> browser_process_; |
168 | 175 |
169 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 176 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
170 }; | 177 }; |
171 | 178 |
172 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 179 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |