Cleanup delegates
This commit is contained in:
+3
-2
@@ -12,13 +12,14 @@ struct ConfirmationInfo;
|
||||
|
||||
class ConfirmationsDelegate {
|
||||
public:
|
||||
virtual ~ConfirmationsDelegate() = default;
|
||||
|
||||
// Invoked to tell the delegate that the |confirmation| was successfully sent.
|
||||
virtual void OnDidConfirm(const ConfirmationInfo& confirmation) {}
|
||||
|
||||
// Invoked to tell the delegate that we failed to send the |confirmation|.
|
||||
virtual void OnFailedToConfirm(const ConfirmationInfo& confirmation) {}
|
||||
|
||||
protected:
|
||||
virtual ~ConfirmationsDelegate() = default;
|
||||
};
|
||||
|
||||
} // namespace ads
|
||||
|
||||
+3
-2
@@ -14,8 +14,6 @@ struct IssuersInfo;
|
||||
|
||||
class IssuersDelegate {
|
||||
public:
|
||||
virtual ~IssuersDelegate() = default;
|
||||
|
||||
// Invoked to tell the delegate we successfully fetched the |issuers|.
|
||||
virtual void OnDidFetchIssuers(const IssuersInfo& issuers) {}
|
||||
|
||||
@@ -28,6 +26,9 @@ class IssuersDelegate {
|
||||
|
||||
// Invoked to tell the delegate we retried fetching the issuers.
|
||||
virtual void OnDidRetryFetchingIssuers() {}
|
||||
|
||||
protected:
|
||||
virtual ~IssuersDelegate() = default;
|
||||
};
|
||||
|
||||
} // namespace ads
|
||||
|
||||
+3
-2
@@ -13,8 +13,6 @@ namespace ads {
|
||||
|
||||
class RedeemUnblindedPaymentTokensDelegate {
|
||||
public:
|
||||
virtual ~RedeemUnblindedPaymentTokensDelegate() = default;
|
||||
|
||||
// Invoked to tell the delegate that the |unblinded_payment_tokens| were
|
||||
// successfully redeemed.
|
||||
virtual void OnDidRedeemUnblindedPaymentTokens(
|
||||
@@ -37,6 +35,9 @@ class RedeemUnblindedPaymentTokensDelegate {
|
||||
// Invoked to tell the delegate that we retried redeeming unblinded payment
|
||||
// tokens.
|
||||
virtual void OnDidRetryRedeemingUnblindedPaymentTokens() {}
|
||||
|
||||
protected:
|
||||
virtual ~RedeemUnblindedPaymentTokensDelegate() = default;
|
||||
};
|
||||
|
||||
} // namespace ads
|
||||
|
||||
+3
-2
@@ -16,8 +16,6 @@ struct ConfirmationInfo;
|
||||
|
||||
class RedeemUnblindedTokenDelegate {
|
||||
public:
|
||||
virtual ~RedeemUnblindedTokenDelegate() = default;
|
||||
|
||||
// Invoked to tell the delegate the |confirmation| was successfully sent.
|
||||
virtual void OnDidSendConfirmation(const ConfirmationInfo& confirmation) {}
|
||||
|
||||
@@ -39,6 +37,9 @@ class RedeemUnblindedTokenDelegate {
|
||||
const ConfirmationInfo& confirmation,
|
||||
const bool should_retry,
|
||||
const bool should_backoff) {}
|
||||
|
||||
protected:
|
||||
virtual ~RedeemUnblindedTokenDelegate() = default;
|
||||
};
|
||||
|
||||
} // namespace ads
|
||||
|
||||
+3
-2
@@ -14,8 +14,6 @@ namespace ads {
|
||||
|
||||
class RefillUnblindedTokensDelegate {
|
||||
public:
|
||||
virtual ~RefillUnblindedTokensDelegate() = default;
|
||||
|
||||
// Invoked to tell the delegate we successfully refilled the unblinded tokens.
|
||||
virtual void OnDidRefillUnblindedTokens() {}
|
||||
|
||||
@@ -34,6 +32,9 @@ class RefillUnblindedTokensDelegate {
|
||||
// with the given |captcha_id| before we can refill the unblinded tokens.
|
||||
virtual void OnCaptchaRequiredToRefillUnblindedTokens(
|
||||
const std::string& captcha_id) {}
|
||||
|
||||
protected:
|
||||
virtual ~RefillUnblindedTokensDelegate() = default;
|
||||
};
|
||||
|
||||
} // namespace ads
|
||||
|
||||
Reference in New Issue
Block a user