| 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 package org.chromium.net; | 5 package org.chromium.net; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 | 8 |
| 9 import org.chromium.base.JNINamespace; | 9 import org.chromium.base.JNINamespace; |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 | 45 |
| 46 public static String getFileURL(String filePath) { | 46 public static String getFileURL(String filePath) { |
| 47 return nativeGetFileURL(filePath); | 47 return nativeGetFileURL(filePath); |
| 48 } | 48 } |
| 49 | 49 |
| 50 public static String getHostPort() { | 50 public static String getHostPort() { |
| 51 return nativeGetHostPort(); | 51 return nativeGetHostPort(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 public static boolean isDataReductionProxySupported() { |
| 55 return nativeIsDataReductionProxySupported(); |
| 56 } |
| 57 |
| 54 private static native boolean nativeStartNativeTestServer(String filePath); | 58 private static native boolean nativeStartNativeTestServer(String filePath); |
| 55 private static native void nativeShutdownNativeTestServer(); | 59 private static native void nativeShutdownNativeTestServer(); |
| 56 private static native String nativeGetEchoBodyURL(); | 60 private static native String nativeGetEchoBodyURL(); |
| 57 private static native String nativeGetEchoHeaderURL(String header); | 61 private static native String nativeGetEchoHeaderURL(String header); |
| 58 private static native String nativeGetEchoAllHeadersURL(); | 62 private static native String nativeGetEchoAllHeadersURL(); |
| 59 private static native String nativeGetEchoMethodURL(); | 63 private static native String nativeGetEchoMethodURL(); |
| 60 private static native String nativeGetRedirectToEchoBody(); | 64 private static native String nativeGetRedirectToEchoBody(); |
| 61 private static native String nativeGetFileURL(String filePath); | 65 private static native String nativeGetFileURL(String filePath); |
| 62 private static native String nativeGetHostPort(); | 66 private static native String nativeGetHostPort(); |
| 67 private static native boolean nativeIsDataReductionProxySupported(); |
| 63 } | 68 } |
| OLD | NEW |