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

Side by Side Diff: chrome/browser/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/browser/background_mode_manager_win.cc ('k') | chrome/browser/browser_process_impl.h » ('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 // This interface is for managing the global services of the application. Each 5 // This interface is for managing the global services of the application. Each
6 // service is lazily created when requested the first time. The service getters 6 // service is lazily created when requested the first time. The service getters
7 // will return NULL if the service is not available, so callers must check for 7 // will return NULL if the service is not available, so callers must check for
8 // this condition. 8 // this condition.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_
11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ 11 #define CHROME_BROWSER_BROWSER_PROCESS_H_
12 #pragma once 12 #pragma once
13 13
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "ipc/ipc_message.h" 19 #include "ipc/ipc_message.h"
20 20
21 class AutomationProviderList; 21 class AutomationProviderList;
22 22
23 namespace safe_browsing { 23 namespace safe_browsing {
24 class ClientSideDetectionService; 24 class ClientSideDetectionService;
25 } 25 }
26 26
27 class BackgroundModeManager;
28 class ChromeNetLog; 27 class ChromeNetLog;
29 class DevToolsManager; 28 class DevToolsManager;
30 class DownloadRequestLimiter; 29 class DownloadRequestLimiter;
31 class DownloadStatusUpdater; 30 class DownloadStatusUpdater;
32 class ExtensionEventRouterForwarder; 31 class ExtensionEventRouterForwarder;
33 class GoogleURLTracker; 32 class GoogleURLTracker;
34 class IconManager; 33 class IconManager;
35 class IntranetRedirectDetector; 34 class IntranetRedirectDetector;
36 class IOThread; 35 class IOThread;
37 class MetricsService; 36 class MetricsService;
38 class NotificationUIManager; 37 class NotificationUIManager;
39 class PrefService; 38 class PrefService;
40 class ProfileManager; 39 class ProfileManager;
41 class ResourceDispatcherHost; 40 class ResourceDispatcherHost;
42 class SidebarManager; 41 class SidebarManager;
43 class StatusTray;
44 class TabCloseableStateWatcher; 42 class TabCloseableStateWatcher;
45 class ThumbnailGenerator; 43 class ThumbnailGenerator;
46 class WatchDogThread; 44 class WatchDogThread;
47 45
48 namespace base { 46 namespace base {
49 class Thread; 47 class Thread;
50 class WaitableEvent; 48 class WaitableEvent;
51 } 49 }
52 50
53 #if defined(OS_CHROMEOS) 51 #if defined(OS_CHROMEOS)
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual base::WaitableEvent* shutdown_event() = 0; 196 virtual base::WaitableEvent* shutdown_event() = 0;
199 197
200 // Returns a reference to the user-data-dir based profiles vector. 198 // Returns a reference to the user-data-dir based profiles vector.
201 std::vector<std::wstring>& user_data_dir_profiles() { 199 std::vector<std::wstring>& user_data_dir_profiles() {
202 return user_data_dir_profiles_; 200 return user_data_dir_profiles_;
203 } 201 }
204 202
205 // Returns the object that watches for changes in the closeable state of tab. 203 // Returns the object that watches for changes in the closeable state of tab.
206 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() = 0; 204 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() = 0;
207 205
208 // Returns the object that manages background applications.
209 virtual BackgroundModeManager* background_mode_manager() = 0;
210
211 // Returns the StatusTray, which provides an API for displaying status icons
212 // in the system status tray. Returns NULL if status icons are not supported
213 // on this platform (or this is a unit test).
214 virtual StatusTray* status_tray() = 0;
215
216 // Returns an object which handles communication with the SafeBrowsing 206 // Returns an object which handles communication with the SafeBrowsing
217 // client-side detection servers. 207 // client-side detection servers.
218 virtual safe_browsing::ClientSideDetectionService* 208 virtual safe_browsing::ClientSideDetectionService*
219 safe_browsing_detection_service() = 0; 209 safe_browsing_detection_service() = 0;
220 210
221 // Returns the state of the disable plugin finder policy. Callable only on 211 // Returns the state of the disable plugin finder policy. Callable only on
222 // the IO thread. 212 // the IO thread.
223 virtual bool plugin_finder_disabled() const = 0; 213 virtual bool plugin_finder_disabled() const = 0;
224 214
225 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 215 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 248
259 // Used for testing plugin data removal at shutdown. 249 // Used for testing plugin data removal at shutdown.
260 std::string plugin_data_remover_mime_type_; 250 std::string plugin_data_remover_mime_type_;
261 251
262 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 252 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
263 }; 253 };
264 254
265 extern BrowserProcess* g_browser_process; 255 extern BrowserProcess* g_browser_process;
266 256
267 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 257 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/background_mode_manager_win.cc ('k') | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698