OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 virtual ChromeNetLog* net_log(); | 112 virtual ChromeNetLog* net_log(); |
113 virtual prerender::PrerenderTracker* prerender_tracker(); | 113 virtual prerender::PrerenderTracker* prerender_tracker(); |
114 | 114 |
115 #if defined(IPC_MESSAGE_LOG_ENABLED) | 115 #if defined(IPC_MESSAGE_LOG_ENABLED) |
116 virtual void SetIPCLoggingEnabled(bool enable) {} | 116 virtual void SetIPCLoggingEnabled(bool enable) {} |
117 #endif | 117 #endif |
118 virtual MHTMLGenerationManager* mhtml_generation_manager(); | 118 virtual MHTMLGenerationManager* mhtml_generation_manager(); |
119 virtual GpuBlacklistUpdater* gpu_blacklist_updater(); | 119 virtual GpuBlacklistUpdater* gpu_blacklist_updater(); |
120 | 120 |
| 121 #if !defined(OS_CHROMEOS) |
| 122 ComponentUpdateService* component_updater(); |
| 123 #endif |
| 124 |
121 // Set the local state for tests. Consumer is responsible for cleaning it up | 125 // Set the local state for tests. Consumer is responsible for cleaning it up |
122 // afterwards (using ScopedTestingLocalState, for example). | 126 // afterwards (using ScopedTestingLocalState, for example). |
123 void SetLocalState(PrefService* local_state); | 127 void SetLocalState(PrefService* local_state); |
124 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); | 128 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); |
125 void SetProfileManager(ProfileManager* profile_manager); | 129 void SetProfileManager(ProfileManager* profile_manager); |
126 void SetIOThread(IOThread* io_thread); | 130 void SetIOThread(IOThread* io_thread); |
127 | 131 |
128 private: | 132 private: |
129 NotificationService notification_service_; | 133 NotificationService notification_service_; |
130 unsigned int module_ref_count_; | 134 unsigned int module_ref_count_; |
(...skipping 25 matching lines...) Expand all Loading... |
156 | 160 |
157 private: | 161 private: |
158 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 162 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
159 // After the transition is over, we should just stack-allocate it. | 163 // After the transition is over, we should just stack-allocate it. |
160 scoped_ptr<TestingBrowserProcess> browser_process_; | 164 scoped_ptr<TestingBrowserProcess> browser_process_; |
161 | 165 |
162 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 166 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
163 }; | 167 }; |
164 | 168 |
165 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 169 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |