diff options
author | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-28 00:24:25 +0000 |
---|---|---|
committer | rlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-28 00:24:25 +0000 |
commit | 9e7f015f8d8e5bdb6b2061831a91067ad7ea597b (patch) | |
tree | da225329fa1c3eb7178920108f0306027d677eda /chrome/browser/browser_process.h | |
parent | e4695f7bd6821bf4156863087e2acdd3e84befd2 (diff) | |
download | chromium_src-9e7f015f8d8e5bdb6b2061831a91067ad7ea597b.zip chromium_src-9e7f015f8d8e5bdb6b2061831a91067ad7ea597b.tar.gz chromium_src-9e7f015f8d8e5bdb6b2061831a91067ad7ea597b.tar.bz2 |
Modifying the BackgroundModeManager to handle multiple profiles.
The background mode manager is now owned by the broser
The status tray is also owned by the browser process since there is only one per browser. Previously it was owned by the profile, but now that there are multiple profiles, it makes sense to have the browser process own it.
Note: This CL does not unify the status tray into one icon.
TEST=unittests (added BackgroundModeManagerTest::MultiProfile)
BUG=80069, 82215
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86726
Review URL: http://codereview.chromium.org/6914021
Review URL: http://codereview.chromium.org/7008026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87119 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process.h')
-rw-r--r-- | chrome/browser/browser_process.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/browser_process.h b/chrome/browser/browser_process.h index fb756ec..9842eed 100644 --- a/chrome/browser/browser_process.h +++ b/chrome/browser/browser_process.h @@ -24,6 +24,7 @@ namespace safe_browsing { class ClientSideDetectionService; } +class BackgroundModeManager; class ChromeNetLog; class DevToolsManager; class DownloadRequestLimiter; @@ -39,6 +40,7 @@ class PrefService; class ProfileManager; class ResourceDispatcherHost; class SidebarManager; +class StatusTray; class TabCloseableStateWatcher; class ThumbnailGenerator; class WatchDogThread; @@ -200,6 +202,14 @@ class BrowserProcess { // Returns the object that watches for changes in the closeable state of tab. virtual TabCloseableStateWatcher* tab_closeable_state_watcher() = 0; + // Returns the object that manages background applications. + virtual BackgroundModeManager* background_mode_manager() = 0; + + // Returns the StatusTray, which provides an API for displaying status icons + // in the system status tray. Returns NULL if status icons are not supported + // on this platform (or this is a unit test). + virtual StatusTray* status_tray() = 0; + // Returns an object which handles communication with the SafeBrowsing // client-side detection servers. virtual safe_browsing::ClientSideDetectionService* |