#include "components/feed/core/v2/tasks/load_stream_from_store_task.h"
#include <algorithm>
#include <utility>
#include "base/check.h"
#include "base/time/time.h"
#include "components/feed/core/proto/v2/store.pb.h"
#include "components/feed/core/proto/v2/wire/reliability_logging_enums.pb.h"
#include "components/feed/core/v2/config.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/protocol_translator.h"
#include "components/feed/core/v2/public/feed_api.h"
#include "components/feed/core/v2/scheduling.h"
#include "components/feed/core/v2/types.h"
namespace feed {
LoadStreamFromStoreTask::Result::Result() = default;
LoadStreamFromStoreTask::Result::~Result() = default;
LoadStreamFromStoreTask::Result::Result(Result&&) = default;
LoadStreamFromStoreTask::Result& LoadStreamFromStoreTask::Result::operator=(
Result&&) = default;
LoadStreamFromStoreTask::LoadStreamFromStoreTask(
LoadType load_type,
FeedStream* feed_stream,
const StreamType& stream_type,
FeedStore* store,
bool missed_last_refresh,
bool is_web_feed_subscriber,
base::OnceCallback<void(Result)> callback)
: … { … }
LoadStreamFromStoreTask::~LoadStreamFromStoreTask() = default;
void LoadStreamFromStoreTask::Run() { … }
void LoadStreamFromStoreTask::LoadStreamDone(
FeedStore::LoadStreamResult result) { … }
void LoadStreamFromStoreTask::LoadContentDone(
std::vector<feedstore::Content> content,
std::vector<feedstore::StreamSharedState> shared_states) { … }
void LoadStreamFromStoreTask::Complete(
LoadStreamStatus status,
feedwire::DiscoverCardReadCacheResult reliability_result) { … }
}