Index: chromecast/net/connectivity_checker_impl.h |
diff --git a/chromecast/net/connectivity_checker_impl.h b/chromecast/net/connectivity_checker_impl.h |
index f600cb7bcfb3b5bc3d8f8f7d548a379da8cd489e..917545dc57b165c1f05dde75fbbdc18d0712b52a 100644 |
--- a/chromecast/net/connectivity_checker_impl.h |
+++ b/chromecast/net/connectivity_checker_impl.h |
@@ -65,8 +65,14 @@ class ConnectivityCheckerImpl |
// Sets connectivity and alerts observers if it has changed |
void SetConnected(bool connected); |
+ enum class ErrorType { |
+ BAD_HTTP_STATUS = 1, |
+ SSL_CERTIFICATE_ERROR = 2, |
+ REQUEST_TIMEOUT = 3, |
+ }; |
+ |
// Called when URL request failed. |
- void OnUrlRequestError(); |
+ void OnUrlRequestError(ErrorType type); |
// Called when URL request timed out. |
void OnUrlRequestTimeout(); |