| Index: content/renderer/render_view.cc
|
| ===================================================================
|
| --- content/renderer/render_view.cc (revision 91391)
|
| +++ content/renderer/render_view.cc (working copy)
|
| @@ -90,6 +90,7 @@
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.h"
|
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifier.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h"
|
| @@ -190,6 +191,7 @@
|
| using WebKit::WebMediaPlayerClient;
|
| using WebKit::WebNavigationPolicy;
|
| using WebKit::WebNavigationType;
|
| +using WebKit::WebNetworkStateNotifier;
|
| using WebKit::WebNode;
|
| using WebKit::WebPlugin;
|
| using WebKit::WebPluginContainer;
|
| @@ -674,6 +676,7 @@
|
| IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem)
|
| #endif
|
| IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed)
|
| + IPC_MESSAGE_HANDLER(ViewMsg_NetworkStateChanged, OnNetworkStateChanged)
|
| // TODO(viettrungluu): Move to a separate message filter.
|
| #if defined(ENABLE_FLAPPER_HACKS)
|
| IPC_MESSAGE_HANDLER(PepperMsg_ConnectTcpACK, OnConnectTcpACK)
|
| @@ -4259,3 +4262,7 @@
|
| else
|
| context_menu_node_.reset();
|
| }
|
| +
|
| +void RenderView::OnNetworkStateChanged(bool online) {
|
| + WebNetworkStateNotifier::setOnLine(online);
|
| +}
|
|
|