This source file includes following definitions.
- pages_
- GetDistilledPage
#include "components/dom_distiller/core/article_distillation_update.h"
#include "base/logging.h"
namespace dom_distiller {
ArticleDistillationUpdate::ArticleDistillationUpdate(
const std::vector<scoped_refptr<RefCountedPageProto> >& pages,
bool has_next_page,
bool has_prev_page)
: has_next_page_(has_next_page),
has_prev_page_(has_prev_page),
pages_(pages) {}
ArticleDistillationUpdate::~ArticleDistillationUpdate() {}
const DistilledPageProto& ArticleDistillationUpdate::GetDistilledPage(
size_t index) const {
DCHECK_GT(pages_.size(), index);
return pages_[index]->data;
}
}