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

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

Issue 1856073002: Coalesce small buffers in net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix javadoc Created 4 years, 8 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 @Override 58 @Override
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 BidirectionalStream createBidirectionalStream(String url, BidirectionalStrea m.Callback callback, 66 BidirectionalStream createBidirectionalStream(String url, BidirectionalStrea m.Callback callback,
67 Executor executor, String httpMethod, List<Map.Entry<String, String> > requestHeaders, 67 Executor executor, String httpMethod, List<Map.Entry<String, String> > requestHeaders,
68 @BidirectionalStream.Builder.StreamPriority int priority) { 68 @BidirectionalStream.Builder.StreamPriority int priority, boolean di sableAutoFlush) {
69 throw new UnsupportedOperationException( 69 throw new UnsupportedOperationException(
70 "Can't create a bidi stream - httpurlconnection doesn't have tho se APIs"); 70 "Can't create a bidi stream - httpurlconnection doesn't have tho se APIs");
71 } 71 }
72 72
73 @Override 73 @Override
74 boolean isEnabled() { 74 boolean isEnabled() {
75 return true; 75 return true;
76 } 76 }
77 77
78 @Override 78 @Override
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // Returning null causes this factory to pass though, which ends up usin g the platform's 136 // Returning null causes this factory to pass though, which ends up usin g the platform's
137 // implementation. 137 // implementation.
138 return new URLStreamHandlerFactory() { 138 return new URLStreamHandlerFactory() {
139 @Override 139 @Override
140 public URLStreamHandler createURLStreamHandler(String protocol) { 140 public URLStreamHandler createURLStreamHandler(String protocol) {
141 return null; 141 return null;
142 } 142 }
143 }; 143 };
144 } 144 }
145 } 145 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698