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_BASE_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 extension_event_router_forwarder() OVERRIDE; | 81 extension_event_router_forwarder() OVERRIDE; |
82 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; | 82 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; |
83 virtual GoogleURLTracker* google_url_tracker() OVERRIDE; | 83 virtual GoogleURLTracker* google_url_tracker() OVERRIDE; |
84 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; | 84 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; |
85 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; | 85 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; |
86 virtual void InitDevToolsHttpProtocolHandler( | 86 virtual void InitDevToolsHttpProtocolHandler( |
87 Profile* profile, | 87 Profile* profile, |
88 const std::string& ip, | 88 const std::string& ip, |
89 int port, | 89 int port, |
90 const std::string& frontend_url) OVERRIDE; | 90 const std::string& frontend_url) OVERRIDE; |
91 virtual void InitDevToolsLegacyProtocolHandler(int port) OVERRIDE; | |
92 virtual unsigned int AddRefModule() OVERRIDE; | 91 virtual unsigned int AddRefModule() OVERRIDE; |
93 virtual unsigned int ReleaseModule() OVERRIDE; | 92 virtual unsigned int ReleaseModule() OVERRIDE; |
94 virtual bool IsShuttingDown() OVERRIDE; | 93 virtual bool IsShuttingDown() OVERRIDE; |
95 virtual printing::PrintJobManager* print_job_manager() OVERRIDE; | 94 virtual printing::PrintJobManager* print_job_manager() OVERRIDE; |
96 virtual printing::PrintPreviewTabController* | 95 virtual printing::PrintPreviewTabController* |
97 print_preview_tab_controller() OVERRIDE; | 96 print_preview_tab_controller() OVERRIDE; |
98 virtual printing::BackgroundPrintingManager* | 97 virtual printing::BackgroundPrintingManager* |
99 background_printing_manager() OVERRIDE; | 98 background_printing_manager() OVERRIDE; |
100 virtual const std::string& GetApplicationLocale() OVERRIDE; | 99 virtual const std::string& GetApplicationLocale() OVERRIDE; |
101 virtual void SetApplicationLocale(const std::string& app_locale) OVERRIDE; | 100 virtual void SetApplicationLocale(const std::string& app_locale) OVERRIDE; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 136 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
138 scoped_refptr<printing::PrintPreviewTabController> | 137 scoped_refptr<printing::PrintPreviewTabController> |
139 print_preview_tab_controller_; | 138 print_preview_tab_controller_; |
140 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 139 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
141 IOThread* io_thread_; | 140 IOThread* io_thread_; |
142 | 141 |
143 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 142 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
144 }; | 143 }; |
145 | 144 |
146 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 145 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |