Chromium Code Reviews| Index: components/cronet/android/cronet_bidirectional_stream_adapter.cc |
| diff --git a/components/cronet/android/cronet_bidirectional_stream_adapter.cc b/components/cronet/android/cronet_bidirectional_stream_adapter.cc |
| index 557c8f47eebc4608e9f2987099d6065dd2542ae6..644229dca0e46193b542b091b8fbceaa985e1d1c 100644 |
| --- a/components/cronet/android/cronet_bidirectional_stream_adapter.cc |
| +++ b/components/cronet/android/cronet_bidirectional_stream_adapter.cc |
| @@ -23,6 +23,7 @@ |
| #include "net/http/http_status_code.h" |
| #include "net/http/http_transaction_factory.h" |
| #include "net/http/http_util.h" |
| +#include "net/quic/quic_protocol.h" |
| #include "net/spdy/spdy_header_block.h" |
| #include "net/ssl/ssl_info.h" |
| #include "net/url_request/http_user_agent_settings.h" |
| @@ -315,8 +316,10 @@ void CronetBidirectionalStreamAdapter::OnFailed(int error) { |
| DCHECK(context_->IsOnNetworkThread()); |
| stream_failed_ = true; |
| JNIEnv* env = base::android::AttachCurrentThread(); |
| + // TODO(mgersh): Add support for NetErrorDetails |
|
pauljensen
2016/06/30 17:35:12
probably a good idea to file a bug for this and in
mgersh
2016/06/30 22:55:53
Done.
|
| cronet::Java_CronetBidirectionalStream_onError( |
| env, owner_.obj(), NetErrorToUrlRequestError(error), error, |
| + net::QUIC_NO_ERROR, |
| ConvertUTF8ToJavaString(env, net::ErrorToString(error)).obj(), |
| bidi_stream_->GetTotalReceivedBytes()); |
| } |