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

Unified Diff: chrome/browser/chromeos/offline/offline_load_page.h

Issue 7969009: Removed chromeos::NetworkStateNotifier and redirected all related code to use (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/offline/offline_load_page.h
===================================================================
--- chrome/browser/chromeos/offline/offline_load_page.h (revision 102206)
+++ chrome/browser/chromeos/offline/offline_load_page.h (working copy)
@@ -9,8 +9,8 @@
#include <string>
#include "base/task.h"
-#include "chrome/browser/chromeos/network_state_notifier.h"
#include "chrome/browser/tab_contents/chrome_interstitial_page.h"
+#include "net/base/network_change_notifier.h"
class Extension;
class TabContents;
@@ -25,7 +25,8 @@
// when no network is available and hides when some network (either
// one of wifi, 3g or ethernet) becomes available.
// It deletes itself when the interstitial page is closed.
-class OfflineLoadPage : public ChromeInterstitialPage {
+class OfflineLoadPage : public ChromeInterstitialPage,
+ public net::NetworkChangeNotifier::OnlineStateObserver {
public:
// A delegate class that is called when the interstitinal page
// is closed.
@@ -63,10 +64,8 @@
virtual void Proceed();
virtual void DontProceed();
- // Overrides ChromeInterstitialPage's Observe.
- virtual void Observe(int type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ // net::NetworkChangeNotifier::OnlineStateObserver overrides.
+ virtual void OnOnlineStateChanged(bool online) OVERRIDE;
// Retrieves template strings of the offline page for app and
// normal site.
« no previous file with comments | « chrome/browser/chromeos/network_state_notifier_browsertest.cc ('k') | chrome/browser/chromeos/offline/offline_load_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698