| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ | 6 #define CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
| 9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| 11 #include "net/base/network_change_notifier.h" | 11 #include "net/base/network_change_notifier.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 // Listens for changes to the online state and manages sending | 15 // Listens for changes to the online state and manages sending |
| 16 // updates to each RenderProcess via RenderProcessHost IPC. | 16 // updates to each RenderProcess via RenderProcessHost IPC. |
| 17 class BrowserOnlineStateObserver | 17 class BrowserOnlineStateObserver |
| 18 : public net::NetworkChangeNotifier::MaxBandwidthObserver, | 18 : public net::NetworkChangeNotifier::MaxBandwidthObserver, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 content::NotificationRegistrar registrar_; | 35 content::NotificationRegistrar registrar_; |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(BrowserOnlineStateObserver); | 37 DISALLOW_COPY_AND_ASSIGN(BrowserOnlineStateObserver); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 } // namespace content | 40 } // namespace content |
| 41 | 41 |
| 42 #endif // CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ | 42 #endif // CONTENT_BROWSER_NET_BROWSER_ONLINE_STATE_OBSERVER_H_ |
| OLD | NEW |