1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_OBSERVER_H_
6 #define COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_OBSERVER_H_
11 #include "components/dom_distiller/core/article_entry.h"
13 namespace dom_distiller
{
15 // Provides notifications for any mutations to entries of the reading list.
16 class DomDistillerObserver
{
18 // An update to an article entry.
19 struct ArticleUpdate
{
26 UpdateType update_type
;
29 virtual void ArticleEntriesUpdated(
30 const std::vector
<ArticleUpdate
>& updates
) = 0;
33 DomDistillerObserver() {}
34 virtual ~DomDistillerObserver() {}
37 DISALLOW_COPY_AND_ASSIGN(DomDistillerObserver
);
40 } // namespace dom_distiller
42 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_OBSERVER_H_