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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 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 virtual message_center::MessageCenter* message_center() OVERRIDE; |
76 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; | 77 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; |
77 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; | 78 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; |
78 virtual void CreateDevToolsHttpProtocolHandler( | 79 virtual void CreateDevToolsHttpProtocolHandler( |
79 Profile* profile, | 80 Profile* profile, |
80 const std::string& ip, | 81 const std::string& ip, |
81 int port, | 82 int port, |
82 const std::string& frontend_url) OVERRIDE; | 83 const std::string& frontend_url) OVERRIDE; |
83 virtual unsigned int AddRefModule() OVERRIDE; | 84 virtual unsigned int AddRefModule() OVERRIDE; |
84 virtual unsigned int ReleaseModule() OVERRIDE; | 85 virtual unsigned int ReleaseModule() OVERRIDE; |
85 virtual bool IsShuttingDown() OVERRIDE; | 86 virtual bool IsShuttingDown() OVERRIDE; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 125 |
125 // TODO(ios): Add back members as more code is compiled. | 126 // TODO(ios): Add back members as more code is compiled. |
126 #if !defined(OS_IOS) | 127 #if !defined(OS_IOS) |
127 #if defined(ENABLE_CONFIGURATION_POLICY) | 128 #if defined(ENABLE_CONFIGURATION_POLICY) |
128 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; | 129 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; |
129 #else | 130 #else |
130 scoped_ptr<policy::PolicyService> policy_service_; | 131 scoped_ptr<policy::PolicyService> policy_service_; |
131 #endif | 132 #endif |
132 scoped_ptr<ProfileManager> profile_manager_; | 133 scoped_ptr<ProfileManager> profile_manager_; |
133 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 134 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
| 135 #if defined(ENABLE_MESSAGE_CENTER) && !defined(USE_ASH) |
| 136 scoped_ptr<message_center::MessageCenter> message_center_; |
| 137 #endif |
134 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 138 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
135 scoped_refptr<printing::PrintPreviewDialogController> | 139 scoped_refptr<printing::PrintPreviewDialogController> |
136 print_preview_dialog_controller_; | 140 print_preview_dialog_controller_; |
137 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 141 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
138 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_; | 142 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_; |
139 scoped_refptr<SafeBrowsingService> sb_service_; | 143 scoped_refptr<SafeBrowsingService> sb_service_; |
140 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; | 144 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; |
141 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_; | 145 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_; |
142 #endif // !defined(OS_IOS) | 146 #endif // !defined(OS_IOS) |
143 | 147 |
144 // The following objects are not owned by TestingBrowserProcess: | 148 // The following objects are not owned by TestingBrowserProcess: |
145 PrefServiceSimple* local_state_; | 149 PrefServiceSimple* local_state_; |
146 IOThread* io_thread_; | 150 IOThread* io_thread_; |
147 net::URLRequestContextGetter* system_request_context_; | 151 net::URLRequestContextGetter* system_request_context_; |
148 | 152 |
149 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 153 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
150 }; | 154 }; |
151 | 155 |
152 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 156 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |