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

Unified Diff: chromecast/net/connectivity_checker_impl.h

Issue 2647323010: [Chromecast] Add proxy server support to chromecast (Closed)
Patch Set: fix deps 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_impl.h
diff --git a/chromecast/net/connectivity_checker_impl.h b/chromecast/net/connectivity_checker_impl.h
index 8779d0cc6bf92fff149f247df4f69b1491a49e72..cea530f37f71e3cdce1cfeeec8001e5b4e86d650 100644
--- a/chromecast/net/connectivity_checker_impl.h
+++ b/chromecast/net/connectivity_checker_impl.h
@@ -34,7 +34,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);
halliwell 2017/02/08 00:07:06 forward declare this class?
almasrymina 2017/02/08 00:48:04 Done.
// ConnectivityChecker implementation:
bool Connected() const override;
@@ -81,7 +82,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_;
@@ -99,6 +100,8 @@ class ConnectivityCheckerImpl
// called.
base::CancelableCallback<void()> timeout_;
+ net::URLRequestContextGetter* url_request_context_getter_;
+
DISALLOW_COPY_AND_ASSIGN(ConnectivityCheckerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698