Chromium Code Reviews| Index: chromecast/net/connectivity_checker.h |
| diff --git a/chromecast/net/connectivity_checker.h b/chromecast/net/connectivity_checker.h |
| index c52b8a624da5b5595e8d8bddddcd5a59609e07a8..990b301f25da433f0967247966b6151e736e9842 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,10 @@ 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; |
| + void OnUrlRequestError(); |
|
derekjchow1
2015/05/19 17:08:47
Move this away from URLRequest::Delegate methods.
wzhong
2015/05/19 17:27:05
Done.
|
| // Initializes ConnectivityChecker |
| void Initialize(); |
| @@ -89,7 +94,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); |
| }; |