#ifndef COMPONENTS_FEED_CORE_V2_VIEW_DEMOTION_H_
#define COMPONENTS_FEED_CORE_V2_VIEW_DEMOTION_H_
#include <stdint.h>
#include <iosfwd>
#include <vector>
#include "base/functional/callback_forward.h"
namespace feedstore {
class DocView;
}
namespace feed {
struct DocViewDigest;
namespace internal {
DocViewDigest CreateDigest(std::vector<feedstore::DocView> all_views);
}
class FeedStream;
struct DocViewCount { … };
std::ostream& operator<<(std::ostream& os, const DocViewCount& doc_view_count);
struct DocViewDigest { … };
void ReadDocViewDigestIfEnabled(
FeedStream& feed_stream,
base::OnceCallback<void(DocViewDigest)> callback);
void WriteDocViewIfEnabled(FeedStream& feed_stream, uint64_t docid);
}
#endif