| 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.impl; | 5 package org.chromium.net.impl; |
| 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 org.chromium.net.BidirectionalStream; | 10 import org.chromium.net.BidirectionalStream; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 @Override | 82 @Override |
| 83 public ExperimentalBidirectionalStream.Builder newBidirectionalStreamBuilder
( | 83 public ExperimentalBidirectionalStream.Builder newBidirectionalStreamBuilder
( |
| 84 String url, BidirectionalStream.Callback callback, Executor executor
) { | 84 String url, BidirectionalStream.Callback callback, Executor executor
) { |
| 85 throw new UnsupportedOperationException( | 85 throw new UnsupportedOperationException( |
| 86 "The bidirectional stream API is not supported by the Java imple
mentation " | 86 "The bidirectional stream API is not supported by the Java imple
mentation " |
| 87 + "of Cronet Engine"); | 87 + "of Cronet Engine"); |
| 88 } | 88 } |
| 89 | 89 |
| 90 @Override | 90 @Override |
| 91 public String getVersionString() { | 91 public String getVersionString() { |
| 92 return "CronetHttpURLConnection/" + ImplVersion.getVersion(); | 92 return "CronetHttpURLConnection/" + ImplVersion.getCronetVersionWithLast
Change(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 @Override | 95 @Override |
| 96 public void shutdown() { | 96 public void shutdown() { |
| 97 mExecutorService.shutdown(); | 97 mExecutorService.shutdown(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 @Override | 100 @Override |
| 101 public void startNetLogToFile(String fileName, boolean logAll) {} | 101 public void startNetLogToFile(String fileName, boolean logAll) {} |
| 102 | 102 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Returning null causes this factory to pass though, which ends up usin
g the platform's | 173 // Returning null causes this factory to pass though, which ends up usin
g the platform's |
| 174 // implementation. | 174 // implementation. |
| 175 return new URLStreamHandlerFactory() { | 175 return new URLStreamHandlerFactory() { |
| 176 @Override | 176 @Override |
| 177 public URLStreamHandler createURLStreamHandler(String protocol) { | 177 public URLStreamHandler createURLStreamHandler(String protocol) { |
| 178 return null; | 178 return null; |
| 179 } | 179 } |
| 180 }; | 180 }; |
| 181 } | 181 } |
| 182 } | 182 } |
| OLD | NEW |