#include "components/feed/core/v2/web_feed_subscriptions/unsubscribe_from_web_feed_task.h"
#include <algorithm>
#include "base/functional/bind.h"
#include "components/feed/core/proto/v2/store.pb.h"
#include "components/feed/core/proto/v2/wire/consistency_token.pb.h"
#include "components/feed/core/proto/v2/wire/web_feeds.pb.h"
#include "components/feed/core/v2/feed_network.h"
#include "components/feed/core/v2/feed_store.h"
#include "components/feed/core/v2/feed_stream.h"
#include "components/feed/core/v2/feedstore_util.h"
#include "components/feed/core/v2/proto_util.h"
#include "components/feed/core/v2/web_feed_subscription_coordinator.h"
#include "components/feed/core/v2/web_feed_subscriptions/web_feed_types.h"
namespace feed {
UnsubscribeFromWebFeedTask::UnsubscribeFromWebFeedTask(
FeedStream* stream,
const OperationToken& operation_token,
const std::string& web_feed_id,
feedwire::webfeed::WebFeedChangeReason change_reason,
base::OnceCallback<void(Result)> callback)
: … { … }
UnsubscribeFromWebFeedTask::~UnsubscribeFromWebFeedTask() = default;
void UnsubscribeFromWebFeedTask::Run() { … }
void UnsubscribeFromWebFeedTask::RequestComplete(
FeedNetwork::ApiResult<feedwire::webfeed::UnfollowWebFeedResponse> result) { … }
void UnsubscribeFromWebFeedTask::Done(WebFeedSubscriptionRequestStatus status) { … }
}