#include "components/commerce/core/bookmark_update_manager.h"
#include <algorithm>
#include <vector>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "components/bookmarks/browser/bookmark_node.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/pref_names.h"
#include "components/commerce/core/price_tracking_utils.h"
#include "components/power_bookmarks/core/power_bookmark_utils.h"
#include "components/power_bookmarks/core/proto/shopping_specifics.pb.h"
#include "url/gurl.h"
namespace commerce {
BookmarkUpdateManager::BookmarkUpdateManager(ShoppingService* service,
bookmarks::BookmarkModel* model,
PrefService* prefs)
: … { … }
BookmarkUpdateManager::~BookmarkUpdateManager() = default;
void BookmarkUpdateManager::ScheduleUpdate() { … }
void BookmarkUpdateManager::CancelUpdates() { … }
void BookmarkUpdateManager::RunUpdate() { … }
void BookmarkUpdateManager::StartNextBatch() { … }
void BookmarkUpdateManager::HandleOnDemandResponse(
const int64_t bookmark_id,
const GURL& url,
std::optional<ProductInfo> info) { … }
}