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

Unified Diff: chromeos/network/connection_change_notifier_factory.h

Issue 11469044: Implement new network change notifier that uses NetworkStateHandler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years 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
Index: chromeos/network/connection_change_notifier_factory.h
diff --git a/chromeos/network/connection_change_notifier_factory.h b/chromeos/network/connection_change_notifier_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..4155e5a1b04ba40e393f1f94168d6f4769877508
--- /dev/null
+++ b/chromeos/network/connection_change_notifier_factory.h
@@ -0,0 +1,30 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMEOS_NETWORK_CONNECTION_CHANGE_NOTIFIER_FACTORY_H_
+#define CHROMEOS_NETWORK_CONNECTION_CHANGE_NOTIFIER_FACTORY_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "chromeos/chromeos_export.h"
+#include "net/base/network_change_notifier_factory.h"
+
+namespace chromeos {
+
+class ConnectionChangeNotifier;
+
+class CHROMEOS_EXPORT ConnectionChangeNotifierFactory :
+ public net::NetworkChangeNotifierFactory {
+ public:
+ ConnectionChangeNotifierFactory() {}
+
+ // net::NetworkChangeNotifierFactory overrides.
+ virtual net::NetworkChangeNotifier* CreateInstance() OVERRIDE;
+
+ static ConnectionChangeNotifier* GetInstance();
+};
+
+} // namespace chromeos
+
+#endif // CHROMEOS_NETWORK_CONNECTION_CHANGE_NOTIFIER_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698