package com.google.android.gms.common.api.internal; import com.google.android.gms.common.api.internal.ListenerHolder; import com.google.android.gms.common.data.DataHolder; /* loaded from: classes.dex */ public abstract class DataHolderNotifier implements ListenerHolder.Notifier { private final DataHolder zaa; @Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier public final void notifyListener(L l) { notifyListener(l, this.zaa); } protected abstract void notifyListener(L l, DataHolder dataHolder); @Override // com.google.android.gms.common.api.internal.ListenerHolder.Notifier public void onNotifyListenerFailed() { DataHolder dataHolder = this.zaa; if (dataHolder != null) { dataHolder.close(); } } protected DataHolderNotifier(DataHolder dataHolder) { this.zaa = dataHolder; } }