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

Side by Side Diff: components/cronet/android/test/src/org/chromium/net/NativeTestServer.java

Issue 1133883002: [Cronet] Enable persistence mode for Sdch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@quic_server_remove_loop
Patch Set: Missing include Created 5 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 package org.chromium.net; 5 package org.chromium.net;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.os.ConditionVariable; 8 import android.os.ConditionVariable;
9 9
10 import org.chromium.base.CalledByNative; 10 import org.chromium.base.CalledByNative;
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 /** 34 /**
35 * Registers customized DNS mapping for {@link NativeTestServer}. 35 * Registers customized DNS mapping for {@link NativeTestServer}.
36 * @param contextAdapter native context adapter object that this 36 * @param contextAdapter native context adapter object that this
37 * mapping should apply to. 37 * mapping should apply to.
38 * @param isLegacyAPI {@code true} if this context adapter is a part of the 38 * @param isLegacyAPI {@code true} if this context adapter is a part of the
39 * old API. 39 * old API.
40 */ 40 */
41 public static void registerHostResolverProc(long contextAdapter, boolean isL egacyAPI) { 41 public static void registerHostResolverProc(long contextAdapter, boolean isL egacyAPI) {
42 sHostResolverBlock.close();
43 nativeRegisterHostResolverProc(contextAdapter, isLegacyAPI); 42 nativeRegisterHostResolverProc(contextAdapter, isLegacyAPI);
44 sHostResolverBlock.block(); 43 sHostResolverBlock.block();
44 sHostResolverBlock.close();
45 } 45 }
46 46
47 public static String getEchoBodyURL() { 47 public static String getEchoBodyURL() {
48 return nativeGetEchoBodyURL(); 48 return nativeGetEchoBodyURL();
49 } 49 }
50 50
51 public static String getEchoHeaderURL(String header) { 51 public static String getEchoHeaderURL(String header) {
52 return nativeGetEchoHeaderURL(header); 52 return nativeGetEchoHeaderURL(header);
53 } 53 }
54 54
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 private static native void nativeRegisterHostResolverProc( 101 private static native void nativeRegisterHostResolverProc(
102 long contextAdapter, boolean isLegacyAPI); 102 long contextAdapter, boolean isLegacyAPI);
103 private static native String nativeGetEchoBodyURL(); 103 private static native String nativeGetEchoBodyURL();
104 private static native String nativeGetEchoHeaderURL(String header); 104 private static native String nativeGetEchoHeaderURL(String header);
105 private static native String nativeGetEchoAllHeadersURL(); 105 private static native String nativeGetEchoAllHeadersURL();
106 private static native String nativeGetEchoMethodURL(); 106 private static native String nativeGetEchoMethodURL();
107 private static native String nativeGetRedirectToEchoBody(); 107 private static native String nativeGetRedirectToEchoBody();
108 private static native String nativeGetFileURL(String filePath); 108 private static native String nativeGetFileURL(String filePath);
109 private static native String nativeGetSdchURL(); 109 private static native String nativeGetSdchURL();
110 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698