| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 #if defined(OS_LINUX) | 56 #if defined(OS_LINUX) |
| 57 virtual base::Thread* background_x11_thread(); | 57 virtual base::Thread* background_x11_thread(); |
| 58 #endif | 58 #endif |
| 59 | 59 |
| 60 virtual base::Thread* file_thread(); | 60 virtual base::Thread* file_thread(); |
| 61 | 61 |
| 62 virtual base::Thread* db_thread(); | 62 virtual base::Thread* db_thread(); |
| 63 | 63 |
| 64 virtual base::Thread* cache_thread(); | 64 virtual base::Thread* cache_thread(); |
| 65 | 65 |
| 66 virtual base::Thread* gpu_thread(); | |
| 67 | |
| 68 virtual WatchDogThread* watchdog_thread(); | 66 virtual WatchDogThread* watchdog_thread(); |
| 69 | 67 |
| 70 #if defined(OS_CHROMEOS) | 68 #if defined(OS_CHROMEOS) |
| 71 virtual base::Thread* web_socket_proxy_thread(); | 69 virtual base::Thread* web_socket_proxy_thread(); |
| 72 #endif | 70 #endif |
| 73 | 71 |
| 74 virtual ProfileManager* profile_manager(); | 72 virtual ProfileManager* profile_manager(); |
| 75 | 73 |
| 76 virtual PrefService* local_state(); | 74 virtual PrefService* local_state(); |
| 77 | 75 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 186 |
| 189 private: | 187 private: |
| 190 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 188 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
| 191 // After the transition is over, we should just stack-allocate it. | 189 // After the transition is over, we should just stack-allocate it. |
| 192 scoped_ptr<TestingBrowserProcess> browser_process_; | 190 scoped_ptr<TestingBrowserProcess> browser_process_; |
| 193 | 191 |
| 194 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 192 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
| 195 }; | 193 }; |
| 196 | 194 |
| 197 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 195 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |