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

Unified Diff: chromecast/net/connectivity_checker_impl.h

Issue 1169163002: Add timeout check for connectivity_checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add timeout check for connectivity_checker. Created 5 years, 6 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 f356234f2ab6b23f93031b81cd6e12641d17e8b6..8e74bafb4737a42ac92b690489a815d0306c2310 100644
--- a/chromecast/net/connectivity_checker_impl.h
+++ b/chromecast/net/connectivity_checker_impl.h
@@ -64,6 +64,9 @@ class ConnectivityCheckerImpl
// Called when URL request failed.
void OnUrlRequestError();
+ // Called when URL request timed out.
+ void OnUrlRequestTimeOut(unsigned int request_index);
+
scoped_ptr<GURL> connectivity_check_url_;
scoped_ptr<net::URLRequestContext> url_request_context_;
scoped_ptr<net::URLRequest> url_request_;
@@ -71,6 +74,7 @@ class ConnectivityCheckerImpl
bool connected_;
// Number of connectivity check errors.
unsigned int check_errors_;
+ unsigned int request_index_;
DISALLOW_COPY_AND_ASSIGN(ConnectivityCheckerImpl);
};
« no previous file with comments | « no previous file | chromecast/net/connectivity_checker_impl.cc » ('j') | chromecast/net/connectivity_checker_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698