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

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

Issue 1492583002: Add HttpUrlConnection backed implementation of CronetEngine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests and header ordering. Created 5 years 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.urlconnection; 5 package org.chromium.net.urlconnection;
6 6
7 import org.chromium.net.CronetEngine; 7 import org.chromium.net.CronetEngine;
8 8
9 import java.io.IOException; 9 import java.io.IOException;
10 import java.net.Proxy; 10 import java.net.Proxy;
(...skipping 26 matching lines...) Expand all
37 public URLConnection openConnection(URL url) throws IOException { 37 public URLConnection openConnection(URL url) throws IOException {
38 return mCronetEngine.openConnection(url); 38 return mCronetEngine.openConnection(url);
39 } 39 }
40 40
41 /** 41 /**
42 * Establishes a new connection to the resource specified by the {@link URL} {@code url} 42 * Establishes a new connection to the resource specified by the {@link URL} {@code url}
43 * using the given proxy. 43 * using the given proxy.
44 * @return an {@link java.net.HttpURLConnection} instance implemented by Cro net. 44 * @return an {@link java.net.HttpURLConnection} instance implemented by Cro net.
45 */ 45 */
46 @Override 46 @Override
47 public URLConnection openConnection(URL url, Proxy proxy) { 47 public URLConnection openConnection(URL url, Proxy proxy) throws IOException {
48 return mCronetEngine.openConnection(url, proxy); 48 return mCronetEngine.openConnection(url, proxy);
49 } 49 }
50 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698