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_ |
11 #define CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 11 #define CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
12 #pragma once | 12 #pragma once |
13 | 13 |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 | 15 |
16 #include <string> | 16 #include <string> |
17 | 17 |
18 #include "base/scoped_ptr.h" | 18 #include "base/scoped_ptr.h" |
19 #include "chrome/browser/browser_process.h" | 19 #include "chrome/browser/browser_process.h" |
20 #include "chrome/common/notification_service.h" | 20 #include "content/common/notification_service.h" |
21 | 21 |
22 class IOThread; | 22 class IOThread; |
23 class GoogleURLTracker; | 23 class GoogleURLTracker; |
24 class PrefService; | 24 class PrefService; |
25 class WatchDogThread; | 25 class WatchDogThread; |
26 | 26 |
27 namespace base { | 27 namespace base { |
28 class WaitableEvent; | 28 class WaitableEvent; |
29 } | 29 } |
30 | 30 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 private: | 164 private: |
165 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 165 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
166 // After the transition is over, we should just stack-allocate it. | 166 // After the transition is over, we should just stack-allocate it. |
167 scoped_ptr<TestingBrowserProcess> browser_process_; | 167 scoped_ptr<TestingBrowserProcess> browser_process_; |
168 | 168 |
169 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 169 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
170 }; | 170 }; |
171 | 171 |
172 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 172 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |