#include "chrome/browser/commerce/coupons/coupon_db.h"
#include "chrome/browser/persisted_state_db/session_proto_db_factory.h"
#include "components/commerce/core/proto/coupon_db_content.pb.h"
CouponDB::CouponDB(content::BrowserContext* browser_context)
: … { … }
CouponDB::~CouponDB() = default;
void CouponDB::LoadCoupon(const GURL& origin, LoadCallback callback) { … }
void CouponDB::LoadAllCoupons(LoadCallback callback) { … }
void CouponDB::AddCoupon(const GURL& origin,
const coupon_db::CouponContentProto& proto) { … }
void CouponDB::DeleteCoupon(const GURL& origin) { … }
void CouponDB::DeleteAllCoupons() { … }
void CouponDB::OnOperationFinished(bool success) { … }