Chromium Code Reviews| 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. |