Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: chrome/test/testing_browser_process.h

Issue 6602004: Trying changes to see the perfomance impact on Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/testing_browser_process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/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 26
26 namespace base { 27 namespace base {
27 class WaitableEvent; 28 class WaitableEvent;
28 } 29 }
29 30
30 namespace policy { 31 namespace policy {
31 class BrowserPolicyConnector; 32 class BrowserPolicyConnector;
32 } 33 }
33 34
34 namespace ui { 35 namespace ui {
(...skipping 16 matching lines...) Expand all
51 #if defined(OS_LINUX) 52 #if defined(OS_LINUX)
52 virtual base::Thread* background_x11_thread(); 53 virtual base::Thread* background_x11_thread();
53 #endif 54 #endif
54 55
55 virtual base::Thread* file_thread(); 56 virtual base::Thread* file_thread();
56 57
57 virtual base::Thread* db_thread(); 58 virtual base::Thread* db_thread();
58 59
59 virtual base::Thread* cache_thread(); 60 virtual base::Thread* cache_thread();
60 61
62 virtual WatchDogThread* watchdog_thread();
63
61 virtual ProfileManager* profile_manager(); 64 virtual ProfileManager* profile_manager();
62 65
63 virtual PrefService* local_state(); 66 virtual PrefService* local_state();
64 67
65 virtual policy::BrowserPolicyConnector* browser_policy_connector(); 68 virtual policy::BrowserPolicyConnector* browser_policy_connector();
66 69
67 virtual IconManager* icon_manager(); 70 virtual IconManager* icon_manager();
68 71
69 virtual ThumbnailGenerator* GetThumbnailGenerator(); 72 virtual ThumbnailGenerator* GetThumbnailGenerator();
70 73
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 161
159 private: 162 private:
160 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. 163 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
161 // After the transition is over, we should just stack-allocate it. 164 // After the transition is over, we should just stack-allocate it.
162 scoped_ptr<TestingBrowserProcess> browser_process_; 165 scoped_ptr<TestingBrowserProcess> browser_process_;
163 166
164 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); 167 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess);
165 }; 168 };
166 169
167 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 170 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698