chromium/chrome/browser/cart/cart_handler.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/cart/cart_handler.h"

#include "base/metrics/field_trial_params.h"
#include "base/metrics/histogram_functions.h"
#include "chrome/browser/cart/cart_service.h"
#include "chrome/browser/cart/cart_service_factory.h"
#include "chrome/browser/new_tab_page/new_tab_page_util.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/common/pref_names.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/proto/cart_db_content.pb.h"
#include "components/prefs/pref_service.h"
#include "components/search/ntp_features.h"

CartHandler::CartHandler(
    mojo::PendingReceiver<chrome_cart::mojom::CartHandler> handler,
    Profile* profile,
    content::WebContents* web_contents)
    :{}

CartHandler::~CartHandler() = default;

void CartHandler::GetMerchantCarts(GetMerchantCartsCallback callback) {}

void CartHandler::GetCartFeatureEnabled(
    GetCartFeatureEnabledCallback callback) {}

void CartHandler::HideCartModule() {}

void CartHandler::RestoreHiddenCartModule() {}

void CartHandler::HideCart(const GURL& cart_url, HideCartCallback callback) {}

void CartHandler::RestoreHiddenCart(const GURL& cart_url,
                                    RestoreHiddenCartCallback callback) {}

void CartHandler::RemoveCart(const GURL& cart_url,
                             RemoveCartCallback callback) {}

void CartHandler::RestoreRemovedCart(const GURL& cart_url,
                                     RestoreRemovedCartCallback callback) {}

void CartHandler::GetCartDataCallback(GetMerchantCartsCallback callback,
                                      bool success,
                                      std::vector<CartDB::KeyAndValue> res) {}

void CartHandler::GetWarmWelcomeVisible(
    GetWarmWelcomeVisibleCallback callback) {}

void CartHandler::GetDiscountURL(const GURL& cart_url,
                                 GetDiscountURLCallback callback) {}

void CartHandler::GetDiscountConsentCardVisible(
    GetDiscountConsentCardVisibleCallback callback) {}

void CartHandler::GetDiscountToggleVisible(
    GetDiscountToggleVisibleCallback callback) {}

void CartHandler::OnDiscountConsentAcknowledged(bool accept) {}

void CartHandler::OnDiscountConsentDismissed() {}

void CartHandler::OnDiscountConsentContinued() {}

void CartHandler::ShowNativeConsentDialog(
    ShowNativeConsentDialogCallback callback) {}

void CartHandler::GetDiscountEnabled(GetDiscountEnabledCallback callback) {}

void CartHandler::SetDiscountEnabled(bool enabled) {}

void CartHandler::PrepareForNavigation(const GURL& cart_url,
                                       bool is_navigating) {}