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

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

Issue 2121403002: Enabling TabManager on testing browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: modified comment Created 4 years, 5 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 | « no previous file | 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 scoped_refptr<printing::PrintPreviewDialogController> 172 scoped_refptr<printing::PrintPreviewDialogController>
173 print_preview_dialog_controller_; 173 print_preview_dialog_controller_;
174 #endif 174 #endif
175 175
176 scoped_refptr<safe_browsing::SafeBrowsingService> sb_service_; 176 scoped_refptr<safe_browsing::SafeBrowsingService> sb_service_;
177 std::unique_ptr<subresource_filter::RulesetService> 177 std::unique_ptr<subresource_filter::RulesetService>
178 subresource_filter_ruleset_service_; 178 subresource_filter_ruleset_service_;
179 179
180 std::unique_ptr<network_time::NetworkTimeTracker> network_time_tracker_; 180 std::unique_ptr<network_time::NetworkTimeTracker> network_time_tracker_;
181 181
182 // |tab_manager_| is null by default and will be created when
183 // GetTabManager() is invoked on supported platforms.
184 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
185 std::unique_ptr<memory::TabManager> tab_manager_;
186 #endif
187
182 // The following objects are not owned by TestingBrowserProcess: 188 // The following objects are not owned by TestingBrowserProcess:
183 PrefService* local_state_; 189 PrefService* local_state_;
184 IOThread* io_thread_; 190 IOThread* io_thread_;
185 net::URLRequestContextGetter* system_request_context_; 191 net::URLRequestContextGetter* system_request_context_;
186 rappor::RapporService* rappor_service_; 192 rappor::RapporService* rappor_service_;
187 193
188 std::unique_ptr<BrowserProcessPlatformPart> platform_part_; 194 std::unique_ptr<BrowserProcessPlatformPart> platform_part_;
189 195
190 #if defined(ENABLE_EXTENSIONS) 196 #if defined(ENABLE_EXTENSIONS)
191 std::unique_ptr<MediaFileSystemRegistry> media_file_system_registry_; 197 std::unique_ptr<MediaFileSystemRegistry> media_file_system_registry_;
(...skipping 22 matching lines...) Expand all
214 class TestingBrowserProcessInitializer { 220 class TestingBrowserProcessInitializer {
215 public: 221 public:
216 TestingBrowserProcessInitializer(); 222 TestingBrowserProcessInitializer();
217 ~TestingBrowserProcessInitializer(); 223 ~TestingBrowserProcessInitializer();
218 224
219 private: 225 private:
220 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); 226 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer);
221 }; 227 };
222 228
223 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 229 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698