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

Side by Side Diff: components/cronet/android/test/native_test_server.cc

Issue 2839413003: Delete Cronet Data Reduction Proxy integration (Closed)
Patch Set: Created 3 years, 7 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/test/native_test_server.h" 5 #include "components/cronet/android/test/native_test_server.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 } 306 }
307 307
308 ScopedJavaLocalRef<jstring> GetHostPort(JNIEnv* env, 308 ScopedJavaLocalRef<jstring> GetHostPort(JNIEnv* env,
309 const JavaParamRef<jclass>& jcaller) { 309 const JavaParamRef<jclass>& jcaller) {
310 DCHECK(g_test_server); 310 DCHECK(g_test_server);
311 std::string host_port = 311 std::string host_port =
312 net::HostPortPair::FromURL(g_test_server->base_url()).ToString(); 312 net::HostPortPair::FromURL(g_test_server->base_url()).ToString();
313 return base::android::ConvertUTF8ToJavaString(env, host_port); 313 return base::android::ConvertUTF8ToJavaString(env, host_port);
314 } 314 }
315 315
316 jboolean IsDataReductionProxySupported(JNIEnv* env,
317 const JavaParamRef<jclass>& jcaller) {
318 #if defined(DATA_REDUCTION_PROXY_SUPPORT)
319 return JNI_TRUE;
320 #else
321 return JNI_FALSE;
322 #endif
323 }
324
325 bool RegisterNativeTestServer(JNIEnv* env) { 316 bool RegisterNativeTestServer(JNIEnv* env) {
326 return RegisterNativesImpl(env); 317 return RegisterNativesImpl(env);
327 } 318 }
328 319
329 } // namespace cronet 320 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698