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

Unified Diff: net/base/network_change_notifier_linux.h

Issue 8575013: Offline state detection for linux, using new D-Bus library. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « net/base/network_change_notifier.cc ('k') | net/base/network_change_notifier_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_change_notifier_linux.h
diff --git a/net/base/network_change_notifier_linux.h b/net/base/network_change_notifier_linux.h
index 89b054559d238d0d6aa06f00ad31c2f5eb0d7179..3dbb814623b90b9ab8a26aa13d59b041c9d4b298 100644
--- a/net/base/network_change_notifier_linux.h
+++ b/net/base/network_change_notifier_linux.h
@@ -9,17 +9,27 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
+#include "net/base/net_export.h"
#include "net/base/network_change_notifier.h"
+namespace dbus {
+class Bus;
+}
+
namespace net {
-class NetworkChangeNotifierLinux : public NetworkChangeNotifier {
+class NET_EXPORT_PRIVATE NetworkChangeNotifierLinux
+ : public NetworkChangeNotifier {
public:
- NetworkChangeNotifierLinux();
+ static NetworkChangeNotifierLinux* Create();
+
+ // Unittests inject a mock bus.
+ static NetworkChangeNotifierLinux* CreateForTest(dbus::Bus* bus);
private:
class Thread;
+ explicit NetworkChangeNotifierLinux(dbus::Bus* bus);
virtual ~NetworkChangeNotifierLinux();
// NetworkChangeNotifier:
« no previous file with comments | « net/base/network_change_notifier.cc ('k') | net/base/network_change_notifier_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698