Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: chrome/test/base/testing_browser_process.h

Issue 11958025: Start delegating notifications to MessageCenter on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another build fix Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 #if defined(ENABLE_MESSAGE_CENTER)
77 virtual message_center::MessageCenter* message_center() OVERRIDE;
78 #endif
76 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; 79 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE;
77 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; 80 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE;
78 virtual void CreateDevToolsHttpProtocolHandler( 81 virtual void CreateDevToolsHttpProtocolHandler(
79 Profile* profile, 82 Profile* profile,
80 const std::string& ip, 83 const std::string& ip,
81 int port, 84 int port,
82 const std::string& frontend_url) OVERRIDE; 85 const std::string& frontend_url) OVERRIDE;
83 virtual unsigned int AddRefModule() OVERRIDE; 86 virtual unsigned int AddRefModule() OVERRIDE;
84 virtual unsigned int ReleaseModule() OVERRIDE; 87 virtual unsigned int ReleaseModule() OVERRIDE;
85 virtual bool IsShuttingDown() OVERRIDE; 88 virtual bool IsShuttingDown() OVERRIDE;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 127
125 // TODO(ios): Add back members as more code is compiled. 128 // TODO(ios): Add back members as more code is compiled.
126 #if !defined(OS_IOS) 129 #if !defined(OS_IOS)
127 #if defined(ENABLE_CONFIGURATION_POLICY) 130 #if defined(ENABLE_CONFIGURATION_POLICY)
128 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; 131 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;
129 #else 132 #else
130 scoped_ptr<policy::PolicyService> policy_service_; 133 scoped_ptr<policy::PolicyService> policy_service_;
131 #endif 134 #endif
132 scoped_ptr<ProfileManager> profile_manager_; 135 scoped_ptr<ProfileManager> profile_manager_;
133 scoped_ptr<NotificationUIManager> notification_ui_manager_; 136 scoped_ptr<NotificationUIManager> notification_ui_manager_;
137 #if defined(ENABLE_MESSAGE_CENTER) && !defined(USE_ASH)
138 scoped_ptr<message_center::MessageCenter> message_center_;
139 #endif
134 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 140 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
135 scoped_refptr<printing::PrintPreviewDialogController> 141 scoped_refptr<printing::PrintPreviewDialogController>
136 print_preview_dialog_controller_; 142 print_preview_dialog_controller_;
137 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; 143 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
138 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_; 144 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_;
139 scoped_refptr<SafeBrowsingService> sb_service_; 145 scoped_refptr<SafeBrowsingService> sb_service_;
140 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; 146 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_;
141 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_; 147 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_;
142 #endif // !defined(OS_IOS) 148 #endif // !defined(OS_IOS)
143 149
144 // The following objects are not owned by TestingBrowserProcess: 150 // The following objects are not owned by TestingBrowserProcess:
145 PrefServiceSimple* local_state_; 151 PrefServiceSimple* local_state_;
146 IOThread* io_thread_; 152 IOThread* io_thread_;
147 net::URLRequestContextGetter* system_request_context_; 153 net::URLRequestContextGetter* system_request_context_;
148 154
149 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 155 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
150 }; 156 };
151 157
152 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 158 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_ui_manager_impl.cc ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698