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.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 Loading... |
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 } |
OLD | NEW |