#include "components/feed/core/v2/web_feed_subscriptions/subscription_datastore_provider.h"
#include "base/logging.h"
#include "base/strings/strcat.h"
#include "components/feed/core/proto/v2/xsurface.pb.h"
#include "components/feed/core/v2/public/types.h"
#include "components/feed/core/v2/xsurface_datastore.h"
namespace feed {
namespace {
constexpr const char kWebFeedFollowStateKeyPrefix[] = …;
feedxsurface::WebFeedFollowState::FollowState ToProtoState(
WebFeedSubscriptionStatus status) { … }
std::string MakeKey(const std::string& web_feed_id) { … }
std::string MakeEntry(WebFeedSubscriptionStatus status) { … }
}
SubscriptionDatastoreProvider::SubscriptionDatastoreProvider(
XsurfaceDatastoreDataWriter* writer)
: … { … }
SubscriptionDatastoreProvider::~SubscriptionDatastoreProvider() = default;
void SubscriptionDatastoreProvider::Update(
std::vector<std::pair<std::string, WebFeedSubscriptionStatus>>
new_state_list) { … }
}