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 SafeBrowsingService* safe_browsing_service() OVERRIDE; | 64 virtual SafeBrowsingService* safe_browsing_service() OVERRIDE; |
65 virtual safe_browsing::ClientSideDetectionService* | 65 virtual safe_browsing::ClientSideDetectionService* |
66 safe_browsing_detection_service() OVERRIDE; | 66 safe_browsing_detection_service() OVERRIDE; |
67 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 67 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
68 | 68 |
69 #if defined(OS_CHROMEOS) | 69 #if defined(OS_CHROMEOS) |
70 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; | 70 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; |
71 #endif // defined(OS_CHROMEOS) | 71 #endif // defined(OS_CHROMEOS) |
72 | 72 |
73 virtual ui::Clipboard* clipboard() OVERRIDE; | 73 virtual ui::Clipboard* clipboard() OVERRIDE; |
74 virtual ExtensionEventRouterForwarder* | 74 virtual extensions::EventRouterForwarder* |
75 extension_event_router_forwarder() OVERRIDE; | 75 extension_event_router_forwarder() OVERRIDE; |
76 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; | 76 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; |
77 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; | 77 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; |
78 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; | 78 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; |
79 virtual void InitDevToolsHttpProtocolHandler( | 79 virtual void InitDevToolsHttpProtocolHandler( |
80 Profile* profile, | 80 Profile* profile, |
81 const std::string& ip, | 81 const std::string& ip, |
82 int port, | 82 int port, |
83 const std::string& frontend_url) OVERRIDE; | 83 const std::string& frontend_url) OVERRIDE; |
84 virtual unsigned int AddRefModule() OVERRIDE; | 84 virtual unsigned int AddRefModule() OVERRIDE; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 scoped_refptr<printing::PrintPreviewTabController> | 128 scoped_refptr<printing::PrintPreviewTabController> |
129 print_preview_tab_controller_; | 129 print_preview_tab_controller_; |
130 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 130 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
131 IOThread* io_thread_; | 131 IOThread* io_thread_; |
132 scoped_refptr<SafeBrowsingService> sb_service_; | 132 scoped_refptr<SafeBrowsingService> sb_service_; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 134 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
135 }; | 135 }; |
136 | 136 |
137 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 137 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |