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