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

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

Issue 12375004: Re-home the global MessageCenter to support Ash+Win environments. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge master. Created 7 years, 9 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // TODO(ios): Add back members as more code is compiled. 129 // TODO(ios): Add back members as more code is compiled.
130 #if !defined(OS_IOS) 130 #if !defined(OS_IOS)
131 #if defined(ENABLE_CONFIGURATION_POLICY) 131 #if defined(ENABLE_CONFIGURATION_POLICY)
132 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; 132 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;
133 #else 133 #else
134 scoped_ptr<policy::PolicyService> policy_service_; 134 scoped_ptr<policy::PolicyService> policy_service_;
135 #endif 135 #endif
136 scoped_ptr<ProfileManager> profile_manager_; 136 scoped_ptr<ProfileManager> profile_manager_;
137 scoped_ptr<NotificationUIManager> notification_ui_manager_; 137 scoped_ptr<NotificationUIManager> notification_ui_manager_;
138 #if defined(ENABLE_MESSAGE_CENTER) && !defined(USE_ASH)
139 scoped_ptr<message_center::MessageCenter> message_center_;
140 #endif
141 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 138 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
142 scoped_refptr<printing::PrintPreviewDialogController> 139 scoped_refptr<printing::PrintPreviewDialogController>
143 print_preview_dialog_controller_; 140 print_preview_dialog_controller_;
144 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; 141 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
145 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_; 142 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_;
146 scoped_refptr<SafeBrowsingService> sb_service_; 143 scoped_refptr<SafeBrowsingService> sb_service_;
147 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; 144 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_;
148 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_; 145 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_;
149 #endif // !defined(OS_IOS) 146 #endif // !defined(OS_IOS)
150 147
151 // The following objects are not owned by TestingBrowserProcess: 148 // The following objects are not owned by TestingBrowserProcess:
152 PrefService* local_state_; 149 PrefService* local_state_;
153 IOThread* io_thread_; 150 IOThread* io_thread_;
154 net::URLRequestContextGetter* system_request_context_; 151 net::URLRequestContextGetter* system_request_context_;
155 152
156 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 153 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
157 }; 154 };
158 155
159 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 156 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698