1// Copyright (c) 2012 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.
4
5#ifndef CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_MODEL_H_
6#define CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_MODEL_H_
7
8namespace gfx {
9class ImageSkia;
10}
11
12namespace chrome {
13
14// Classes implement this interface to provide state for the TabIconView.
15class TabIconViewModel {
16 public:
17  // Returns true if the TabIconView should show a loading animation.
18  virtual bool ShouldTabIconViewAnimate() const = 0;
19
20  // Returns the favicon to display in the icon view
21  virtual gfx::ImageSkia GetFaviconForTabIconView() = 0;
22
23 protected:
24  virtual ~TabIconViewModel() {}
25};
26
27}  // namespace chrome
28
29#endif  // CHROME_BROWSER_UI_VIEWS_TAB_ICON_VIEW_MODEL_H_
30