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

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 101752)
+++ 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,
+ net::NetworkChangeNotifier::OnlineStateObserver {
public:
// A delegate class that is called when the interstitinal page
// is closed.
@@ -63,10 +64,7 @@
virtual void Proceed();
virtual void DontProceed();
- // Overrides ChromeInterstitialPage's Observe.
- virtual void Observe(int type,
- const NotificationSource& source,
- const NotificationDetails& details);
+ virtual void OnOnlineStateChanged(bool online);
xiyuan 2011/09/20 04:20:37 nit: OVERRIDE
zel 2011/09/20 15:27:56 Done.
// Retrieves template strings of the offline page for app and
// normal site.

Powered by Google App Engine
This is Rietveld 408576698