cronet: add ProxyParam arg to CronetTransportFactory (#3589)

This commit is contained in:
zpencer 2017-10-19 08:55:56 -07:00 committed by GitHub
parent 04f4065a63
commit 976bda8f6e
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ import io.grpc.internal.AbstractManagedChannelImplBuilder;
import io.grpc.internal.ClientTransportFactory;
import io.grpc.internal.ConnectionClientTransport;
import io.grpc.internal.GrpcUtil;
import io.grpc.internal.ProxyParameters;
import io.grpc.internal.SharedResourceHolder;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
@ -160,7 +161,7 @@ public final class CronetChannelBuilder extends
@Override
public ConnectionClientTransport newClientTransport(SocketAddress addr, String authority,
@Nullable String userAgent) {
@Nullable String userAgent, @Nullable ProxyParameters proxy) {
InetSocketAddress inetSocketAddr = (InetSocketAddress) addr;
return new CronetClientTransport(streamFactory, inetSocketAddr, authority, userAgent,
executor, maxMessageSize, alwaysUsePut);