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

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

Issue 1263053002: Move JNI annotations to annotations package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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.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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698