summaryrefslogtreecommitdiffstats
path: root/net/base/network_change_notifier_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/network_change_notifier_linux.h')
-rw-r--r--net/base/network_change_notifier_linux.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/base/network_change_notifier_linux.h b/net/base/network_change_notifier_linux.h
index 89b0545..083454f 100644
--- a/net/base/network_change_notifier_linux.h
+++ b/net/base/network_change_notifier_linux.h
@@ -11,15 +11,23 @@
#include "base/memory/scoped_ptr.h"
#include "net/base/network_change_notifier.h"
+namespace dbus {
+class Bus;
+}
+
namespace net {
class 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: