#include "chrome/browser/ui/commerce/discounts_page_action_controller.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/shopping_service.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
namespace commerce {
DiscountsPageActionController::DiscountsShownData::DiscountsShownData() =
default;
DiscountsPageActionController::DiscountsShownData::~DiscountsShownData() =
default;
DiscountsPageActionController::DiscountsPageActionController(
base::RepeatingCallback<void()> notify_callback,
ShoppingService* shopping_service)
: … { … }
DiscountsPageActionController::~DiscountsPageActionController() = default;
DiscountsPageActionController::DiscountsShownData*
DiscountsPageActionController::GetOrCreate(ShoppingService* shopping_service) { … }
std::optional<bool> DiscountsPageActionController::ShouldShowForNavigation() { … }
bool DiscountsPageActionController::WantsExpandedUi() { … }
void DiscountsPageActionController::ResetForNewNavigation(const GURL& url) { … }
void DiscountsPageActionController::HandleDiscountInfoResponse(
const GURL& url,
const std::vector<DiscountInfo> discounts) { … }
const std::vector<DiscountInfo>& DiscountsPageActionController::GetDiscounts() { … }
void DiscountsPageActionController::CouponCodeCopied() { … }
bool DiscountsPageActionController::IsCouponCodeCopied() { … }
bool DiscountsPageActionController::ShouldAutoShowBubble(
uint64_t discount_id,
bool is_merchant_wide) { … }
void DiscountsPageActionController::DiscountsBubbleShown(uint64_t discount_id) { … }
}