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 <stddef.h> | 8 #include <stddef.h> |
8 | 9 |
9 #include <map> | 10 #include <map> |
10 | 11 |
11 #include "base/android/jni_android.h" | 12 #include "base/android/jni_android.h" |
12 #include "base/android/jni_array.h" | 13 #include "base/android/jni_array.h" |
13 #include "base/android/jni_string.h" | 14 #include "base/android/jni_string.h" |
14 #include "base/bind.h" | 15 #include "base/bind.h" |
15 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
16 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 JNIEnv* env, | 658 JNIEnv* env, |
658 const JavaParamRef<jclass>& jcaller) { | 659 const JavaParamRef<jclass>& jcaller) { |
659 base::StatisticsRecorder::Initialize(); | 660 base::StatisticsRecorder::Initialize(); |
660 std::vector<uint8_t> data; | 661 std::vector<uint8_t> data; |
661 if (!HistogramManager::GetInstance()->GetDeltas(&data)) | 662 if (!HistogramManager::GetInstance()->GetDeltas(&data)) |
662 return ScopedJavaLocalRef<jbyteArray>(); | 663 return ScopedJavaLocalRef<jbyteArray>(); |
663 return base::android::ToJavaByteArray(env, &data[0], data.size()); | 664 return base::android::ToJavaByteArray(env, &data[0], data.size()); |
664 } | 665 } |
665 | 666 |
666 } // namespace cronet | 667 } // namespace cronet |
OLD | NEW |