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.util.Log; | 7 import android.util.Log; |
8 | 8 |
9 import org.chromium.base.CalledByNative; | 9 import org.chromium.base.annotations.CalledByNative; |
10 import org.chromium.base.JNINamespace; | 10 import org.chromium.base.annotations.JNINamespace; |
11 import org.chromium.base.annotations.SuppressFBWarnings; | 11 import org.chromium.base.annotations.SuppressFBWarnings; |
12 | 12 |
13 import java.io.IOException; | 13 import java.io.IOException; |
14 import java.net.MalformedURLException; | 14 import java.net.MalformedURLException; |
15 import java.net.SocketTimeoutException; | 15 import java.net.SocketTimeoutException; |
16 import java.net.URL; | 16 import java.net.URL; |
17 import java.net.UnknownHostException; | 17 import java.net.UnknownHostException; |
18 import java.nio.ByteBuffer; | 18 import java.nio.ByteBuffer; |
19 import java.nio.channels.ReadableByteChannel; | 19 import java.nio.channels.ReadableByteChannel; |
20 import java.nio.channels.WritableByteChannel; | 20 import java.nio.channels.WritableByteChannel; |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 | 758 |
759 private native String nativeGetNegotiatedProtocol(long urlRequestAdapter); | 759 private native String nativeGetNegotiatedProtocol(long urlRequestAdapter); |
760 | 760 |
761 private native boolean nativeGetWasCached(long urlRequestAdapter); | 761 private native boolean nativeGetWasCached(long urlRequestAdapter); |
762 | 762 |
763 // Explicit class to work around JNI-generator generics confusion. | 763 // Explicit class to work around JNI-generator generics confusion. |
764 private static class ResponseHeadersMap extends | 764 private static class ResponseHeadersMap extends |
765 HashMap<String, List<String>> { | 765 HashMap<String, List<String>> { |
766 } | 766 } |
767 } | 767 } |
OLD | NEW |