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

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

Issue 2660963002: Cronet: a framework to provide alternative Cronet implementations (Closed)
Patch Set: Created 3 years, 10 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 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698