#ifndef ASH_BIRCH_BIRCH_RANKER_H_
#define ASH_BIRCH_BIRCH_RANKER_H_
#include "ash/ash_export.h"
#include "ash/birch/birch_item.h"
#include "base/time/time.h"
namespace ash {
class BirchAttachmentItem;
class BirchCalendarItem;
class BirchCoralItem;
class BirchFileItem;
class BirchTabItem;
class BirchWeatherItem;
class BirchLostMediaItem;
class ASH_EXPORT BirchRanker {
public:
explicit BirchRanker(base::Time now);
BirchRanker(const BirchRanker&) = delete;
BirchRanker& operator=(const BirchRanker&) = delete;
~BirchRanker();
void RankCalendarItems(std::vector<BirchCalendarItem>* items);
void RankAttachmentItems(std::vector<BirchAttachmentItem>* items);
void RankFileSuggestItems(std::vector<BirchFileItem>* items);
void RankRecentTabItems(std::vector<BirchTabItem>* items);
void RankLastActiveItems(std::vector<BirchLastActiveItem>* items);
void RankMostVisitedItems(std::vector<BirchMostVisitedItem>* items);
void RankSelfShareItems(std::vector<BirchSelfShareItem>* items);
void RankLostMediaItems(std::vector<BirchLostMediaItem>* items);
void RankWeatherItems(std::vector<BirchWeatherItem>* items);
void RankReleaseNotesItems(std::vector<BirchReleaseNotesItem>* items);
void RankCoralItems(std::vector<BirchCoralItem>* items);
bool IsMorning() const;
bool IsEvening() const;
private:
bool IsOngoingEvent(const BirchCalendarItem& item) const;
bool IsTomorrowEvent(const BirchCalendarItem& item) const;
float GetReleaseNotesItemRanking(const BirchReleaseNotesItem& item) const;
base::Time now_;
};
}
#endif