summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_view.h
diff options
context:
space:
mode:
authoradamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 22:42:08 +0000
committeradamk@chromium.org <adamk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-04 22:42:08 +0000
commit232a58169700ed7abde79d9858c288eb21409e60 (patch)
treea1424f86d252cd3859c060954882a9a1809a5121 /chrome/renderer/render_view.h
parentcdc5489ddff18b5ff13296abc1c8869e3cd7db28 (diff)
downloadchromium_src-232a58169700ed7abde79d9858c288eb21409e60.zip
chromium_src-232a58169700ed7abde79d9858c288eb21409e60.tar.gz
chromium_src-232a58169700ed7abde79d9858c288eb21409e60.tar.bz2
Plumb through NetworkChangeNotifier::IsOffline() to WebKit, enabling
navigator.onLine and online/offline events. Only works on Windows at the moment, as IsCurrentlyOffline() is supported only by NetworkChangeNotifierWin. Most of the changes are due to the need to support two different kinds of NetworkChangeNotifier observers. Both observers currently happen to trigger on the same event, but that could change, e.g., if we store the previous online state and only notify on a change. Thus the need for two different observer interfaces, and associated Add/Remove methods. BUG=7469 TEST=Load https://bug336359.bugzilla.mozilla.org/attachment.cgi?id=220609, unplug network cable, reload, see that page changes to note offline status Review URL: http://codereview.chromium.org/6526059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76985 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r--chrome/renderer/render_view.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index c5fa9e9..7173547 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -884,6 +884,7 @@ class RenderView : public RenderWidget,
const WebKit::WebMediaPlayerAction& action);
void OnMoveOrResizeStarted();
void OnNavigate(const ViewMsg_Navigate_Params& params);
+ void OnNetworkStateChanged(bool online);
void OnNotifyRendererViewType(ViewType::Type view_type);
void OnPaste();
#if defined(OS_MACOSX)