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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 virtual base::Thread* file_thread(); | 57 virtual base::Thread* file_thread(); |
58 | 58 |
59 virtual base::Thread* db_thread(); | 59 virtual base::Thread* db_thread(); |
60 | 60 |
61 virtual base::Thread* cache_thread(); | 61 virtual base::Thread* cache_thread(); |
62 | 62 |
63 virtual base::Thread* gpu_thread(); | 63 virtual base::Thread* gpu_thread(); |
64 | 64 |
65 virtual WatchDogThread* watchdog_thread(); | 65 virtual WatchDogThread* watchdog_thread(); |
66 | 66 |
| 67 #if defined(OS_CHROMEOS) |
| 68 virtual base::Thread* webproxy_thread(); |
| 69 #endif |
| 70 |
67 virtual ProfileManager* profile_manager(); | 71 virtual ProfileManager* profile_manager(); |
68 | 72 |
69 virtual PrefService* local_state(); | 73 virtual PrefService* local_state(); |
70 | 74 |
71 virtual policy::BrowserPolicyConnector* browser_policy_connector(); | 75 virtual policy::BrowserPolicyConnector* browser_policy_connector(); |
72 | 76 |
73 virtual IconManager* icon_manager(); | 77 virtual IconManager* icon_manager(); |
74 | 78 |
75 virtual ThumbnailGenerator* GetThumbnailGenerator(); | 79 virtual ThumbnailGenerator* GetThumbnailGenerator(); |
76 | 80 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 176 |
173 private: | 177 private: |
174 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 178 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
175 // After the transition is over, we should just stack-allocate it. | 179 // After the transition is over, we should just stack-allocate it. |
176 scoped_ptr<TestingBrowserProcess> browser_process_; | 180 scoped_ptr<TestingBrowserProcess> browser_process_; |
177 | 181 |
178 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 182 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
179 }; | 183 }; |
180 | 184 |
181 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 185 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |