OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "net/base/network_change_notifier.h" |
| 11 |
| 12 // Listens for changes to the online state and manages sending |
| 13 // updates to each RenderProcess via RenderProcessHost IPC. |
| 14 class BrowserOnlineStateObserver |
| 15 : public net::NetworkChangeNotifier::OnlineStateObserver { |
| 16 public: |
| 17 BrowserOnlineStateObserver(); |
| 18 virtual ~BrowserOnlineStateObserver(); |
| 19 |
| 20 // OnlineStateObserver implementation. |
| 21 virtual void OnOnlineStateChanged(bool online); |
| 22 |
| 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(BrowserOnlineStateObserver); |
| 25 }; |
| 26 |
| 27 #endif // CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ |
OLD | NEW |