chromium/components/feed/core/v2/web_feed_subscriptions/web_feed_subscription_model.cc

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

#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) {}

}  // namespace

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() {}

// Updates recommended web feeds in both index and store.
void WebFeedSubscriptionModel::UpdateRecommendedFeeds(
    std::vector<feedstore::WebFeedInfo> recommended_web_feeds) {}

// Updates subscribed web feeds in both index and store.
void WebFeedSubscriptionModel::UpdateSubscribedFeeds(
    std::vector<feedstore::WebFeedInfo> subscribed_web_feeds) {}

}  // namespace feed