OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/cronet/android/cronet_url_request_context_adapter.h" | 5 #include "components/cronet/android/cronet_url_request_context_adapter.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 const net::CompletionCallback& callback, | 285 const net::CompletionCallback& callback, |
286 const net::HttpResponseHeaders* original_response_headers, | 286 const net::HttpResponseHeaders* original_response_headers, |
287 scoped_refptr<net::HttpResponseHeaders>* _response_headers, | 287 scoped_refptr<net::HttpResponseHeaders>* _response_headers, |
288 GURL* allowed_unsafe_redirect_url) override { | 288 GURL* allowed_unsafe_redirect_url) override { |
289 return net::OK; | 289 return net::OK; |
290 } | 290 } |
291 | 291 |
292 void OnBeforeRedirect(net::URLRequest* request, | 292 void OnBeforeRedirect(net::URLRequest* request, |
293 const GURL& new_location) override {} | 293 const GURL& new_location) override {} |
294 | 294 |
295 void OnResponseStarted(net::URLRequest* request) override {} | 295 void OnResponseStarted(net::URLRequest* request, int net_error) override {} |
296 | 296 |
297 void OnCompleted(net::URLRequest* request, bool started) override {} | 297 void OnCompleted(net::URLRequest* request, |
| 298 bool started, |
| 299 int net_error) override {} |
298 | 300 |
299 void OnURLRequestDestroyed(net::URLRequest* request) override {} | 301 void OnURLRequestDestroyed(net::URLRequest* request) override {} |
300 | 302 |
301 void OnPACScriptError(int line_number, const base::string16& error) override { | 303 void OnPACScriptError(int line_number, const base::string16& error) override { |
302 } | 304 } |
303 | 305 |
304 NetworkDelegate::AuthRequiredResponse OnAuthRequired( | 306 NetworkDelegate::AuthRequiredResponse OnAuthRequired( |
305 net::URLRequest* request, | 307 net::URLRequest* request, |
306 const net::AuthChallengeInfo& auth_info, | 308 const net::AuthChallengeInfo& auth_info, |
307 const AuthCallback& callback, | 309 const AuthCallback& callback, |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 JNIEnv* env, | 1071 JNIEnv* env, |
1070 const JavaParamRef<jclass>& jcaller) { | 1072 const JavaParamRef<jclass>& jcaller) { |
1071 base::StatisticsRecorder::Initialize(); | 1073 base::StatisticsRecorder::Initialize(); |
1072 std::vector<uint8_t> data; | 1074 std::vector<uint8_t> data; |
1073 if (!HistogramManager::GetInstance()->GetDeltas(&data)) | 1075 if (!HistogramManager::GetInstance()->GetDeltas(&data)) |
1074 return ScopedJavaLocalRef<jbyteArray>(); | 1076 return ScopedJavaLocalRef<jbyteArray>(); |
1075 return base::android::ToJavaByteArray(env, &data[0], data.size()); | 1077 return base::android::ToJavaByteArray(env, &data[0], data.size()); |
1076 } | 1078 } |
1077 | 1079 |
1078 } // namespace cronet | 1080 } // namespace cronet |
OLD | NEW |