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

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

Issue 509753002: Introduce @CalledByReflection annotation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update to ExternalOemSupport Created 6 years, 3 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.Build; 8 import android.os.Build;
9 9
10 import org.chromium.base.UsedByReflection;
11
10 import java.nio.channels.WritableByteChannel; 12 import java.nio.channels.WritableByteChannel;
11 import java.util.Map; 13 import java.util.Map;
12 14
13 /** 15 /**
14 * Network request factory using the native http stack implementation. 16 * Network request factory using the native http stack implementation.
15 */ 17 */
16 @UsedByReflection("HttpUrlRequestFactory.java") 18 @UsedByReflection("HttpUrlRequestFactory.java")
17 public class ChromiumUrlRequestFactory extends HttpUrlRequestFactory { 19 public class ChromiumUrlRequestFactory extends HttpUrlRequestFactory {
18 private ChromiumUrlRequestContext mRequestContext; 20 private ChromiumUrlRequestContext mRequestContext;
19 21
(...skipping 30 matching lines...) Expand all
50 Map<String, String> headers, WritableByteChannel channel, 52 Map<String, String> headers, WritableByteChannel channel,
51 HttpUrlRequestListener listener) { 53 HttpUrlRequestListener listener) {
52 return new ChromiumUrlRequest(mRequestContext, url, requestPriority, 54 return new ChromiumUrlRequest(mRequestContext, url, requestPriority,
53 headers, channel, listener); 55 headers, channel, listener);
54 } 56 }
55 57
56 public ChromiumUrlRequestContext getRequestContext() { 58 public ChromiumUrlRequestContext getRequestContext() {
57 return mRequestContext; 59 return mRequestContext;
58 } 60 }
59 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698