| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 #endif | 110 #endif |
| 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 virtual ComponentUpdateService* component_updater(); |
| 120 | 121 |
| 121 // Set the local state for tests. Consumer is responsible for cleaning it up | 122 // Set the local state for tests. Consumer is responsible for cleaning it up |
| 122 // afterwards (using ScopedTestingLocalState, for example). | 123 // afterwards (using ScopedTestingLocalState, for example). |
| 123 void SetLocalState(PrefService* local_state); | 124 void SetLocalState(PrefService* local_state); |
| 124 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); | 125 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); |
| 125 void SetProfileManager(ProfileManager* profile_manager); | 126 void SetProfileManager(ProfileManager* profile_manager); |
| 126 void SetIOThread(IOThread* io_thread); | 127 void SetIOThread(IOThread* io_thread); |
| 127 | 128 |
| 128 private: | 129 private: |
| 129 NotificationService notification_service_; | 130 NotificationService notification_service_; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 156 | 157 |
| 157 private: | 158 private: |
| 158 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 159 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
| 159 // After the transition is over, we should just stack-allocate it. | 160 // After the transition is over, we should just stack-allocate it. |
| 160 scoped_ptr<TestingBrowserProcess> browser_process_; | 161 scoped_ptr<TestingBrowserProcess> browser_process_; |
| 161 | 162 |
| 162 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 163 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
| 163 }; | 164 }; |
| 164 | 165 |
| 165 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 166 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |