56 lines
1.8 KiB
Java
56 lines
1.8 KiB
Java
package okhttp3.internal.http2;
|
|
|
|
import java.io.IOException;
|
|
import java.util.List;
|
|
import o.C14957gcv;
|
|
import o.InterfaceC15149gid;
|
|
|
|
/* loaded from: classes.dex */
|
|
public interface PushObserver {
|
|
public static final Companion Companion = Companion.$$INSTANCE;
|
|
public static final PushObserver CANCEL = new Companion.PushObserverCancel();
|
|
|
|
boolean onData(int i, InterfaceC15149gid interfaceC15149gid, int i2, boolean z) throws IOException;
|
|
|
|
boolean onHeaders(int i, List<Header> list, boolean z);
|
|
|
|
boolean onRequest(int i, List<Header> list);
|
|
|
|
void onReset(int i, ErrorCode errorCode);
|
|
|
|
/* loaded from: classes.dex */
|
|
public static final class Companion {
|
|
static final Companion $$INSTANCE = new Companion();
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
static final class PushObserverCancel implements PushObserver {
|
|
@Override // okhttp3.internal.http2.PushObserver
|
|
public final boolean onData(int i, InterfaceC15149gid interfaceC15149gid, int i2, boolean z) throws IOException {
|
|
C14957gcv.e(interfaceC15149gid, "");
|
|
interfaceC15149gid.j(i2);
|
|
return true;
|
|
}
|
|
|
|
@Override // okhttp3.internal.http2.PushObserver
|
|
public final void onReset(int i, ErrorCode errorCode) {
|
|
C14957gcv.e(errorCode, "");
|
|
}
|
|
|
|
@Override // okhttp3.internal.http2.PushObserver
|
|
public final boolean onRequest(int i, List<Header> list) {
|
|
C14957gcv.e(list, "");
|
|
return true;
|
|
}
|
|
|
|
@Override // okhttp3.internal.http2.PushObserver
|
|
public final boolean onHeaders(int i, List<Header> list, boolean z) {
|
|
C14957gcv.e(list, "");
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
}
|