| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 static android.os.Process.THREAD_PRIORITY_BACKGROUND; | 7 import static android.os.Process.THREAD_PRIORITY_BACKGROUND; |
| 8 import static android.os.Process.THREAD_PRIORITY_MORE_FAVORABLE; | 8 import static android.os.Process.THREAD_PRIORITY_MORE_FAVORABLE; |
| 9 | 9 |
| 10 import java.io.IOException; | 10 import java.io.IOException; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 @Override | 113 @Override |
| 114 public void removeRttListener(NetworkQualityRttListener listener) {} | 114 public void removeRttListener(NetworkQualityRttListener listener) {} |
| 115 | 115 |
| 116 @Override | 116 @Override |
| 117 public void addThroughputListener(NetworkQualityThroughputListener listener)
{} | 117 public void addThroughputListener(NetworkQualityThroughputListener listener)
{} |
| 118 | 118 |
| 119 @Override | 119 @Override |
| 120 public void removeThroughputListener(NetworkQualityThroughputListener listen
er) {} | 120 public void removeThroughputListener(NetworkQualityThroughputListener listen
er) {} |
| 121 | 121 |
| 122 @Override | 122 @Override |
| 123 public void addRequestFinishedListener(RequestFinishedListener listener) {} | 123 public void addRequestFinishedListener(RequestFinishedInfo.Listener listener
) {} |
| 124 | 124 |
| 125 @Override | 125 @Override |
| 126 public void removeRequestFinishedListener(RequestFinishedListener listener)
{} | 126 public void removeRequestFinishedListener(RequestFinishedInfo.Listener liste
ner) {} |
| 127 | 127 |
| 128 @Override | 128 @Override |
| 129 public URLConnection openConnection(URL url) throws IOException { | 129 public URLConnection openConnection(URL url) throws IOException { |
| 130 return url.openConnection(); | 130 return url.openConnection(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 @Override | 133 @Override |
| 134 public URLConnection openConnection(URL url, Proxy proxy) throws IOException
{ | 134 public URLConnection openConnection(URL url, Proxy proxy) throws IOException
{ |
| 135 return url.openConnection(proxy); | 135 return url.openConnection(proxy); |
| 136 } | 136 } |
| 137 | 137 |
| 138 @Override | 138 @Override |
| 139 public URLStreamHandlerFactory createURLStreamHandlerFactory() { | 139 public URLStreamHandlerFactory createURLStreamHandlerFactory() { |
| 140 // Returning null causes this factory to pass though, which ends up usin
g the platform's | 140 // Returning null causes this factory to pass though, which ends up usin
g the platform's |
| 141 // implementation. | 141 // implementation. |
| 142 return new URLStreamHandlerFactory() { | 142 return new URLStreamHandlerFactory() { |
| 143 @Override | 143 @Override |
| 144 public URLStreamHandler createURLStreamHandler(String protocol) { | 144 public URLStreamHandler createURLStreamHandler(String protocol) { |
| 145 return null; | 145 return null; |
| 146 } | 146 } |
| 147 }; | 147 }; |
| 148 } | 148 } |
| 149 } | 149 } |
| OLD | NEW |