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

Unified Diff: chromecast/net/connectivity_checker.h

Issue 1145723004: Override OnSSLCertificateError() in connectivity_checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle OnSSLCertificateError() in connectivity_checker. Created 5 years, 7 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 | « no previous file | chromecast/net/connectivity_checker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/net/connectivity_checker.h
diff --git a/chromecast/net/connectivity_checker.h b/chromecast/net/connectivity_checker.h
index c52b8a624da5b5595e8d8bddddcd5a59609e07a8..f1dedcfe277714ddca1bf40a033938172c245df1 100644
--- a/chromecast/net/connectivity_checker.h
+++ b/chromecast/net/connectivity_checker.h
@@ -18,6 +18,7 @@ class MessageLoopProxy;
}
namespace net {
+class SSLInfo;
class URLRequestContext;
}
@@ -65,6 +66,9 @@ class ConnectivityChecker
// UrlRequest::Delegate implementation:
void OnResponseStarted(net::URLRequest* request) override;
void OnReadCompleted(net::URLRequest* request, int bytes_read) override;
+ void OnSSLCertificateError(net::URLRequest* request,
+ const net::SSLInfo& ssl_info,
+ bool fatal) override;
// Initializes ConnectivityChecker
void Initialize();
@@ -82,6 +86,9 @@ class ConnectivityChecker
// Sets connectivity and alerts observers if it has changed
void SetConnectivity(bool connected);
+ // Called when URL request failed.
+ void OnUrlRequestError();
+
scoped_ptr<GURL> connectivity_check_url_;
scoped_ptr<net::URLRequestContext> url_request_context_;
scoped_ptr<net::URLRequest> url_request_;
@@ -89,7 +96,8 @@ class ConnectivityChecker
connectivity_observer_list_;
const scoped_refptr<base::MessageLoopProxy> loop_proxy_;
bool connected_;
- unsigned int bad_responses_;
+ // Number of connectivity check errors.
+ unsigned int check_errors_;
DISALLOW_COPY_AND_ASSIGN(ConnectivityChecker);
};
« no previous file with comments | « no previous file | chromecast/net/connectivity_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698