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

Unified Diff: chromecast/net/connectivity_checker.h

Issue 2647323010: [Chromecast] Add proxy server support to chromecast (Closed)
Patch Set: Fix unittest failure Created 3 years, 10 months 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: chromecast/net/connectivity_checker.h
diff --git a/chromecast/net/connectivity_checker.h b/chromecast/net/connectivity_checker.h
index dff6e530c6fd45b10084872b3034582dc61677de..9a61271f7ec0c48c53d771fae2df944b83abe3f9 100644
--- a/chromecast/net/connectivity_checker.h
+++ b/chromecast/net/connectivity_checker.h
@@ -11,10 +11,16 @@
#include "base/memory/ref_counted.h"
#include "base/observer_list_threadsafe.h"
+class PrefProxyConfigTracker;
+
namespace base {
class SingleThreadTaskRunner;
}
+namespace net {
+class ProxyConfigService;
+}
+
namespace chromecast {
// Checks if internet connectivity is available.
@@ -35,13 +41,16 @@ class ConnectivityChecker
};
static scoped_refptr<ConnectivityChecker> Create(
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
+ std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker);
ConnectivityChecker();
void AddConnectivityObserver(ConnectivityObserver* observer);
void RemoveConnectivityObserver(ConnectivityObserver* observer);
+ virtual void DetachFromPrefService() = 0;
+
// Returns if there is internet connectivity.
virtual bool Connected() const = 0;

Powered by Google App Engine
This is Rietveld 408576698