Chromium Code Reviews| 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; |