| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; | 69 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; |
| 70 | 70 |
| 71 virtual extensions::EventRouterForwarder* | 71 virtual extensions::EventRouterForwarder* |
| 72 extension_event_router_forwarder() OVERRIDE; | 72 extension_event_router_forwarder() OVERRIDE; |
| 73 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; | 73 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; |
| 74 #if defined(ENABLE_MESSAGE_CENTER) |
| 74 virtual message_center::MessageCenter* message_center() OVERRIDE; | 75 virtual message_center::MessageCenter* message_center() OVERRIDE; |
| 76 #endif |
| 75 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; | 77 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; |
| 76 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; | 78 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; |
| 77 virtual void CreateDevToolsHttpProtocolHandler( | 79 virtual void CreateDevToolsHttpProtocolHandler( |
| 78 Profile* profile, | 80 Profile* profile, |
| 79 chrome::HostDesktopType host_desktop_type, | 81 chrome::HostDesktopType host_desktop_type, |
| 80 const std::string& ip, | 82 const std::string& ip, |
| 81 int port, | 83 int port, |
| 82 const std::string& frontend_url) OVERRIDE; | 84 const std::string& frontend_url) OVERRIDE; |
| 83 virtual unsigned int AddRefModule() OVERRIDE; | 85 virtual unsigned int AddRefModule() OVERRIDE; |
| 84 virtual unsigned int ReleaseModule() OVERRIDE; | 86 virtual unsigned int ReleaseModule() OVERRIDE; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 PrefService* local_state_; | 155 PrefService* local_state_; |
| 154 IOThread* io_thread_; | 156 IOThread* io_thread_; |
| 155 net::URLRequestContextGetter* system_request_context_; | 157 net::URLRequestContextGetter* system_request_context_; |
| 156 | 158 |
| 157 scoped_ptr<BrowserProcessPlatformPart> platform_part_; | 159 scoped_ptr<BrowserProcessPlatformPart> platform_part_; |
| 158 | 160 |
| 159 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 161 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 160 }; | 162 }; |
| 161 | 163 |
| 162 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 164 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |