#ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_OBSERVER_H_
#define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_OBSERVER_H_
#include <string>
#include <vector>
#include "components/dom_distiller/core/article_entry.h"
namespace dom_distiller {
class DomDistillerObserver {
public:
struct ArticleUpdate {
enum UpdateType {
ADD,
UPDATE,
REMOVE
};
std::string entry_id;
UpdateType update_type;
};
virtual void ArticleEntriesUpdated(
const std::vector<ArticleUpdate>& updates) = 0;
protected:
DomDistillerObserver() {}
virtual ~DomDistillerObserver() {}
private:
DISALLOW_COPY_AND_ASSIGN(DomDistillerObserver);
};
}
#endif