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

Unified Diff: chromecast/net/connectivity_checker_impl.h

Issue 2647323010: [Chromecast] Add proxy server support to chromecast (Closed)
Patch Set: Fixing test break. 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
« no previous file with comments | « chromecast/net/connectivity_checker.cc ('k') | chromecast/net/connectivity_checker_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/net/connectivity_checker_impl.h
diff --git a/chromecast/net/connectivity_checker_impl.h b/chromecast/net/connectivity_checker_impl.h
index 8779d0cc6bf92fff149f247df4f69b1491a49e72..49e5e467471cd6257361e3e8d655b0c2ce73f577 100644
--- a/chromecast/net/connectivity_checker_impl.h
+++ b/chromecast/net/connectivity_checker_impl.h
@@ -21,6 +21,7 @@ namespace net {
class SSLInfo;
class URLRequest;
class URLRequestContext;
+class URLRequestContextGetter;
}
namespace chromecast {
@@ -34,7 +35,8 @@ class ConnectivityCheckerImpl
public:
// Connectivity checking and initialization will run on task_runner.
explicit ConnectivityCheckerImpl(
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
+ net::URLRequestContextGetter* url_request_context_getter);
// ConnectivityChecker implementation:
bool Connected() const override;
@@ -52,7 +54,7 @@ class ConnectivityCheckerImpl
bool fatal) override;
// Initializes ConnectivityChecker
- void Initialize();
+ void Initialize(net::URLRequestContextGetter* url_request_context_getter);
// net::NetworkChangeNotifier::NetworkChangeObserver implementation:
void OnNetworkChanged(
@@ -81,7 +83,7 @@ class ConnectivityCheckerImpl
void CheckInternal();
std::unique_ptr<GURL> connectivity_check_url_;
- std::unique_ptr<net::URLRequestContext> url_request_context_;
+ net::URLRequestContext* url_request_context_;
std::unique_ptr<net::URLRequest> url_request_;
const scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
« no previous file with comments | « chromecast/net/connectivity_checker.cc ('k') | chromecast/net/connectivity_checker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698