#include "components/feed/core/v2/web_feed_subscriptions/web_feed_subscription_model.h"
#include "components/feed/core/proto/v2/store.pb.h"
#include "components/feed/core/v2/feed_store.h"
#include "components/feed/core/v2/feedstore_util.h"
#include "components/feed/core/v2/web_feed_subscriptions/web_feed_index.h"
#include "components/feed/core/v2/web_feed_subscriptions/web_feed_metadata_model.h"
namespace feed {
namespace {
feedstore::WebFeedInfo Remove(
const std::string& web_feed_id,
std::vector<feedstore::WebFeedInfo>& feed_info_list) { … }
}
WebFeedSubscriptionModel::WebFeedSubscriptionModel(
FeedStore* store,
WebFeedIndex* index,
std::vector<feedstore::WebFeedInfo>* recent_subscriptions,
feedstore::SubscribedWebFeeds feeds,
WebFeedMetadataModel* metadata_model)
: … { … }
WebFeedSubscriptionModel::~WebFeedSubscriptionModel() = default;
WebFeedSubscriptionInfo WebFeedSubscriptionModel::GetSubscriptionInfo(
const std::string& web_feed_id) { … }
void WebFeedSubscriptionModel::OnSubscribed(
const feedstore::WebFeedInfo& info) { … }
void WebFeedSubscriptionModel::OnUnsubscribed(const std::string& web_feed_id) { … }
void WebFeedSubscriptionModel::UpdateIndexAndStore() { … }
void WebFeedSubscriptionModel::UpdateRecommendedFeeds(
std::vector<feedstore::WebFeedInfo> recommended_web_feeds) { … }
void WebFeedSubscriptionModel::UpdateSubscribedFeeds(
std::vector<feedstore::WebFeedInfo> subscribed_web_feeds) { … }
}