Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / dom_distiller / core / dom_distiller_observer.h
blobab094ce7ac98564ac77ce9a84d6cbf2d085d9b7a
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_
8 #include <string>
9 #include <vector>
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 {
17 public:
18 // An update to an article entry.
19 struct ArticleUpdate {
20 enum UpdateType {
21 ADD,
22 UPDATE,
23 REMOVE
25 std::string entry_id;
26 UpdateType update_type;
29 virtual void ArticleEntriesUpdated(
30 const std::vector<ArticleUpdate>& updates) = 0;
32 protected:
33 DomDistillerObserver() {}
34 virtual ~DomDistillerObserver() {}
36 private:
37 DISALLOW_COPY_AND_ASSIGN(DomDistillerObserver);
40 } // namespace dom_distiller
42 #endif // COMPONENTS_DOM_DISTILLER_CORE_DOM_DISTILLER_OBSERVER_H_