Chromium Code Reviews| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 // TabManager is null by defalut and will be created when GetTabManager() is | |
| 183 // invoked in suppoerted platforms. | |
|
Georges Khalil
2016/07/06 18:00:04
nit (wording): TabManager is null by default and w
Georges Khalil
2016/07/06 18:00:45
Make that: |tab_manager_| is null...
Anderson Silva
2016/07/06 18:11:11
Done.
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |