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

Unified Diff: net/base/network_change_notifier_linux.h

Issue 739983005: Determine connection type in NetworkChangeNotifierLinux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 5a0f6dff308afeca8d64b2fe21963a1e703086e0..1f6e6fe6777fd326a7bc4b3cd8bb1cddd7a87976 100644
--- a/net/base/network_change_notifier_linux.h
+++ b/net/base/network_change_notifier_linux.h
@@ -17,6 +17,16 @@ class NET_EXPORT_PRIVATE NetworkChangeNotifierLinux
: public NetworkChangeNotifier {
public:
static NetworkChangeNotifierLinux* Create();
+ static NetworkChangeNotifierLinux* GetInstance();
pauljensen 2014/11/21 18:55:36 Accessing static instances is discouraged. Please
derekjchow1 2014/11/21 23:13:58 Done.
+
+ // Adds/removes a netif name to ignore. Returns true if success.
+ bool AddNetifToIgnore(const std::string& netif_name);
+ bool RemoveNetifToIgnore(const std::string& netif_name);
pauljensen 2014/11/21 18:55:36 I see no motivation for adding these APIs. Please
derekjchow1 2014/11/21 23:13:58 Done.
+
+ // Returns message loop proxy for own IO thread.
+ scoped_refptr<base::MessageLoopProxy> GetMessageLoopProxy() const;
pauljensen 2014/11/21 18:55:36 I don't think we should be exposing this.
derekjchow1 2014/11/21 23:13:58 Done.
+
+ std::string GetPrimaryNetif() const;
private:
class Thread;

Powered by Google App Engine
This is Rietveld 408576698