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