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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void SetBookmarkPromptController(BookmarkPromptController* controller); | 109 void SetBookmarkPromptController(BookmarkPromptController* controller); |
110 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); | 110 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); |
111 | 111 |
112 private: | 112 private: |
113 scoped_ptr<content::NotificationService> notification_service_; | 113 scoped_ptr<content::NotificationService> notification_service_; |
114 unsigned int module_ref_count_; | 114 unsigned int module_ref_count_; |
115 std::string app_locale_; | 115 std::string app_locale_; |
116 | 116 |
117 // Weak pointer. | 117 // Weak pointer. |
118 PrefService* local_state_; | 118 PrefService* local_state_; |
| 119 // TODO(ios): Add back members as more code is compiled. |
| 120 #if !defined(OS_IOS) |
119 #if defined(ENABLE_CONFIGURATION_POLICY) | 121 #if defined(ENABLE_CONFIGURATION_POLICY) |
120 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; | 122 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; |
121 #else | 123 #else |
122 scoped_ptr<policy::PolicyService> policy_service_; | 124 scoped_ptr<policy::PolicyService> policy_service_; |
123 #endif | 125 #endif |
124 scoped_ptr<ProfileManager> profile_manager_; | 126 scoped_ptr<ProfileManager> profile_manager_; |
125 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 127 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
126 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 128 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
127 scoped_refptr<printing::PrintPreviewTabController> | 129 scoped_refptr<printing::PrintPreviewTabController> |
128 print_preview_tab_controller_; | 130 print_preview_tab_controller_; |
129 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 131 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
130 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_; | 132 scoped_ptr<RenderWidgetSnapshotTaker> render_widget_snapshot_taker_; |
| 133 #endif // !defined(OS_IOS) |
131 IOThread* io_thread_; | 134 IOThread* io_thread_; |
| 135 // TODO(ios): Add back members as more code is compiled. |
| 136 #if !defined(OS_IOS) |
132 scoped_refptr<SafeBrowsingService> sb_service_; | 137 scoped_refptr<SafeBrowsingService> sb_service_; |
133 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; | 138 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; |
| 139 #endif // !defined(OS_IOS) |
134 net::URLRequestContextGetter* system_request_context_; | 140 net::URLRequestContextGetter* system_request_context_; |
135 | 141 |
136 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 142 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
137 }; | 143 }; |
138 | 144 |
139 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 145 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |