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

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

Issue 7068025: Revert 86724 - Modifying the BackgroundModeManager to handle multiple profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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_browser.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 <string> 14 #include <string>
15 15
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "chrome/browser/browser_process.h" 18 #include "chrome/browser/browser_process.h"
19 #include "content/common/notification_service.h" 19 #include "content/common/notification_service.h"
20 20
21 class BackgroundModeManager;
22 class IOThread; 21 class IOThread;
23 class GoogleURLTracker; 22 class GoogleURLTracker;
24 class NotificationUIManager; 23 class NotificationUIManager;
25 class PrefService; 24 class PrefService;
26 class WatchDogThread; 25 class WatchDogThread;
27 26
28 namespace base { 27 namespace base {
29 class WaitableEvent; 28 class WaitableEvent;
30 } 29 }
31 30
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual IconManager* icon_manager(); 80 virtual IconManager* icon_manager();
82 81
83 virtual ThumbnailGenerator* GetThumbnailGenerator(); 82 virtual ThumbnailGenerator* GetThumbnailGenerator();
84 83
85 virtual DevToolsManager* devtools_manager(); 84 virtual DevToolsManager* devtools_manager();
86 85
87 virtual SidebarManager* sidebar_manager(); 86 virtual SidebarManager* sidebar_manager();
88 87
89 virtual TabCloseableStateWatcher* tab_closeable_state_watcher(); 88 virtual TabCloseableStateWatcher* tab_closeable_state_watcher();
90 89
91 virtual BackgroundModeManager* background_mode_manager();
92
93 virtual StatusTray* status_tray();
94
95 virtual safe_browsing::ClientSideDetectionService* 90 virtual safe_browsing::ClientSideDetectionService*
96 safe_browsing_detection_service(); 91 safe_browsing_detection_service();
97 92
98 virtual net::URLRequestContextGetter* system_request_context(); 93 virtual net::URLRequestContextGetter* system_request_context();
99 94
100 #if defined(OS_CHROMEOS) 95 #if defined(OS_CHROMEOS)
101 virtual chromeos::ProxyConfigServiceImpl* 96 virtual chromeos::ProxyConfigServiceImpl*
102 chromeos_proxy_config_service_impl(); 97 chromeos_proxy_config_service_impl();
103 #endif // defined(OS_CHROMEOS) 98 #endif // defined(OS_CHROMEOS)
104 99
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 188
194 private: 189 private:
195 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. 190 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062.
196 // After the transition is over, we should just stack-allocate it. 191 // After the transition is over, we should just stack-allocate it.
197 scoped_ptr<TestingBrowserProcess> browser_process_; 192 scoped_ptr<TestingBrowserProcess> browser_process_;
198 193
199 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); 194 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess);
200 }; 195 };
201 196
202 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ 197 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/test/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698