| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual extensions::EventRouterForwarder* | 73 virtual extensions::EventRouterForwarder* |
| 74 extension_event_router_forwarder() OVERRIDE; | 74 extension_event_router_forwarder() OVERRIDE; |
| 75 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; | 75 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; |
| 76 #if defined(ENABLE_MESSAGE_CENTER) | 76 #if defined(ENABLE_MESSAGE_CENTER) |
| 77 virtual message_center::MessageCenter* message_center() OVERRIDE; | 77 virtual message_center::MessageCenter* message_center() OVERRIDE; |
| 78 #endif | 78 #endif |
| 79 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; | 79 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; |
| 80 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; | 80 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; |
| 81 virtual void CreateDevToolsHttpProtocolHandler( | 81 virtual void CreateDevToolsHttpProtocolHandler( |
| 82 Profile* profile, | 82 Profile* profile, |
| 83 chrome::HostDesktopType host_desktop_type, |
| 83 const std::string& ip, | 84 const std::string& ip, |
| 84 int port, | 85 int port, |
| 85 const std::string& frontend_url) OVERRIDE; | 86 const std::string& frontend_url) OVERRIDE; |
| 86 virtual unsigned int AddRefModule() OVERRIDE; | 87 virtual unsigned int AddRefModule() OVERRIDE; |
| 87 virtual unsigned int ReleaseModule() OVERRIDE; | 88 virtual unsigned int ReleaseModule() OVERRIDE; |
| 88 virtual bool IsShuttingDown() OVERRIDE; | 89 virtual bool IsShuttingDown() OVERRIDE; |
| 89 virtual printing::PrintJobManager* print_job_manager() OVERRIDE; | 90 virtual printing::PrintJobManager* print_job_manager() OVERRIDE; |
| 90 virtual printing::PrintPreviewDialogController* | 91 virtual printing::PrintPreviewDialogController* |
| 91 print_preview_dialog_controller() OVERRIDE; | 92 print_preview_dialog_controller() OVERRIDE; |
| 92 virtual printing::BackgroundPrintingManager* | 93 virtual printing::BackgroundPrintingManager* |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 150 |
| 150 // The following objects are not owned by TestingBrowserProcess: | 151 // The following objects are not owned by TestingBrowserProcess: |
| 151 PrefService* local_state_; | 152 PrefService* local_state_; |
| 152 IOThread* io_thread_; | 153 IOThread* io_thread_; |
| 153 net::URLRequestContextGetter* system_request_context_; | 154 net::URLRequestContextGetter* system_request_context_; |
| 154 | 155 |
| 155 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 156 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 159 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |