Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(567)

Side by Side Diff: components/cronet/android/cronet_url_request_context_adapter.cc

Issue 1898603002: Move Network Quality Estimator files to //net/nqe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include <map> 10 #include <map>
(...skipping 16 matching lines...) Expand all
27 #include "base/time/time.h" 27 #include "base/time/time.h"
28 #include "base/values.h" 28 #include "base/values.h"
29 #include "components/cronet/histogram_manager.h" 29 #include "components/cronet/histogram_manager.h"
30 #include "components/cronet/url_request_context_config.h" 30 #include "components/cronet/url_request_context_config.h"
31 #include "components/prefs/pref_change_registrar.h" 31 #include "components/prefs/pref_change_registrar.h"
32 #include "components/prefs/pref_filter.h" 32 #include "components/prefs/pref_filter.h"
33 #include "components/prefs/pref_registry_simple.h" 33 #include "components/prefs/pref_registry_simple.h"
34 #include "components/prefs/pref_service.h" 34 #include "components/prefs/pref_service.h"
35 #include "components/prefs/pref_service_factory.h" 35 #include "components/prefs/pref_service_factory.h"
36 #include "jni/CronetUrlRequestContext_jni.h" 36 #include "jni/CronetUrlRequestContext_jni.h"
37 #include "net/base/external_estimate_provider.h"
38 #include "net/base/load_flags.h" 37 #include "net/base/load_flags.h"
39 #include "net/base/net_errors.h" 38 #include "net/base/net_errors.h"
40 #include "net/base/network_delegate_impl.h" 39 #include "net/base/network_delegate_impl.h"
41 #include "net/base/url_util.h" 40 #include "net/base/url_util.h"
42 #include "net/cert/cert_verifier.h" 41 #include "net/cert/cert_verifier.h"
43 #include "net/cookies/cookie_monster.h" 42 #include "net/cookies/cookie_monster.h"
44 #include "net/http/http_auth_handler_factory.h" 43 #include "net/http/http_auth_handler_factory.h"
45 #include "net/http/http_server_properties_manager.h" 44 #include "net/http/http_server_properties_manager.h"
46 #include "net/log/write_to_file_net_log_observer.h" 45 #include "net/log/write_to_file_net_log_observer.h"
46 #include "net/nqe/external_estimate_provider.h"
47 #include "net/proxy/proxy_config_service_android.h" 47 #include "net/proxy/proxy_config_service_android.h"
48 #include "net/proxy/proxy_service.h" 48 #include "net/proxy/proxy_service.h"
49 #include "net/sdch/sdch_owner.h" 49 #include "net/sdch/sdch_owner.h"
50 #include "net/ssl/channel_id_service.h" 50 #include "net/ssl/channel_id_service.h"
51 #include "net/url_request/url_request_context.h" 51 #include "net/url_request/url_request_context.h"
52 #include "net/url_request/url_request_context_builder.h" 52 #include "net/url_request/url_request_context_builder.h"
53 #include "net/url_request/url_request_interceptor.h" 53 #include "net/url_request/url_request_interceptor.h"
54 54
55 #if defined(DATA_REDUCTION_PROXY_SUPPORT) 55 #if defined(DATA_REDUCTION_PROXY_SUPPORT)
56 #include "components/cronet/android/cronet_data_reduction_proxy.h" 56 #include "components/cronet/android/cronet_data_reduction_proxy.h"
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 JNIEnv* env, 885 JNIEnv* env,
886 const JavaParamRef<jclass>& jcaller) { 886 const JavaParamRef<jclass>& jcaller) {
887 base::StatisticsRecorder::Initialize(); 887 base::StatisticsRecorder::Initialize();
888 std::vector<uint8_t> data; 888 std::vector<uint8_t> data;
889 if (!HistogramManager::GetInstance()->GetDeltas(&data)) 889 if (!HistogramManager::GetInstance()->GetDeltas(&data))
890 return ScopedJavaLocalRef<jbyteArray>(); 890 return ScopedJavaLocalRef<jbyteArray>();
891 return base::android::ToJavaByteArray(env, &data[0], data.size()); 891 return base::android::ToJavaByteArray(env, &data[0], data.size());
892 } 892 }
893 893
894 } // namespace cronet 894 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698