summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_process_impl.h
diff options
context:
space:
mode:
authoradamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 21:15:09 +0000
committeradamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 21:15:09 +0000
commit6eac57a601d0f2e88390609b5716c08eb5f19b73 (patch)
tree6038bcdc6309799c2c7375fd9a72dc79ff80dac4 /chrome/browser/browser_process_impl.h
parentb32c028c0bbcd40cc74067968a0aebb4a52a3bd7 (diff)
downloadchromium_src-6eac57a601d0f2e88390609b5716c08eb5f19b73.zip
chromium_src-6eac57a601d0f2e88390609b5716c08eb5f19b73.tar.gz
chromium_src-6eac57a601d0f2e88390609b5716c08eb5f19b73.tar.bz2
Convert ViewMsg_NetworkStateChanged from routed -> control,
minimizing the number of required IPCs (since the online state is a per-WebKit singleton). In doing so, I've disentangled online state management from TabContents: it now resides off by itself in BrowserOnlineStateObserver, a tiny class owned by BrowserProcessImpl. This is an attempt to re-land r91390 without the OnProcessLaunched IPC (since r92062 solved that in a different way by using WebPreferences). The previous commit was reverted due to missing message_loop.h includes. R=darin@chromium.org Review URL: http://codereview.chromium.org/7343011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92233 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.h')
-rw-r--r--chrome/browser/browser_process_impl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h
index e6bede0..0c52f94 100644
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -27,6 +27,7 @@
#include "content/common/notification_registrar.h"
#include "ipc/ipc_message.h"
+class BrowserOnlineStateObserver;
class ChromeNetLog;
class ChromeResourceDispatcherHostDelegate;
class CommandLine;
@@ -312,6 +313,9 @@ class BrowserProcessImpl : public BrowserProcess,
chromeos_proxy_config_service_impl_;
#endif
+ // Per-process listener for online state changes.
+ scoped_ptr<BrowserOnlineStateObserver> online_state_observer_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
};