#ifndef COMPONENTS_FEED_CORE_V2_SCHEDULING_H_
#define COMPONENTS_FEED_CORE_V2_SCHEDULING_H_
#include <vector>
#include "base/time/time.h"
#include "base/values.h"
#include "components/feed/core/v2/enums.h"
#include "components/feed/core/v2/public/stream_type.h"
namespace feedstore {
class Metadata;
}
namespace feed {
struct RequestSchedule { … };
base::Value::Dict RequestScheduleToDict(const RequestSchedule& schedule);
RequestSchedule RequestScheduleFromDict(const base::Value::Dict& dict);
base::Time NextScheduledRequestTime(base::Time now, RequestSchedule* schedule);
bool ShouldWaitForNewContent(const feedstore::Metadata& metadata,
const StreamType& stream_type,
base::TimeDelta content_age,
bool is_web_feed_subscriber);
bool ContentInvalidFromAge(const feedstore::Metadata& metadata,
const StreamType& stream_type,
base::TimeDelta content_age,
bool is_web_feed_subscriber);
}
#endif