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

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

Issue 2245803002: Remove BidirectionalStream.Builder.disableAutoFlush (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 4 years, 4 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; 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 public UrlRequest createRequest(String url, UrlRequest.Callback callback, Ex ecutor executor, 59 public UrlRequest createRequest(String url, UrlRequest.Callback callback, Ex ecutor executor,
60 int priority, Collection<Object> connectionAnnotations, boolean disa bleCache, 60 int priority, Collection<Object> connectionAnnotations, boolean disa bleCache,
61 boolean disableConnectionMigration) { 61 boolean disableConnectionMigration) {
62 return new JavaUrlRequest(callback, mExecutorService, executor, url, mUs erAgent); 62 return new JavaUrlRequest(callback, mExecutorService, executor, url, mUs erAgent);
63 } 63 }
64 64
65 @Override 65 @Override
66 public BidirectionalStream createBidirectionalStream(String url, 66 public BidirectionalStream createBidirectionalStream(String url,
67 BidirectionalStream.Callback callback, Executor executor, String htt pMethod, 67 BidirectionalStream.Callback callback, Executor executor, String htt pMethod,
68 List<Map.Entry<String, String>> requestHeaders, 68 List<Map.Entry<String, String>> requestHeaders,
69 @BidirectionalStream.Builder.StreamPriority int priority, boolean di sableAutoFlush, 69 @BidirectionalStream.Builder.StreamPriority int priority,
70 boolean delayRequestHeadersUntilFirstFlush) { 70 boolean delayRequestHeadersUntilFirstFlush) {
71 throw new UnsupportedOperationException( 71 throw new UnsupportedOperationException(
72 "Can't create a bidi stream - httpurlconnection doesn't have tho se APIs"); 72 "Can't create a bidi stream - httpurlconnection doesn't have tho se APIs");
73 } 73 }
74 74
75 @Override 75 @Override
76 public boolean isEnabled() { 76 public boolean isEnabled() {
77 return true; 77 return true;
78 } 78 }
79 79
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Returning null causes this factory to pass though, which ends up usin g the platform's 145 // Returning null causes this factory to pass though, which ends up usin g the platform's
146 // implementation. 146 // implementation.
147 return new URLStreamHandlerFactory() { 147 return new URLStreamHandlerFactory() {
148 @Override 148 @Override
149 public URLStreamHandler createURLStreamHandler(String protocol) { 149 public URLStreamHandler createURLStreamHandler(String protocol) {
150 return null; 150 return null;
151 } 151 }
152 }; 152 };
153 } 153 }
154 } 154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698