1 // Copyright 2014 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_FAVICON_CORE_FAVICON_DRIVER_OBSERVER_H_
6 #define COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_OBSERVER_H_
8 #include "base/macros.h"
18 // An observer implemented by classes which are interested in event from
20 class FaviconDriverObserver
{
22 FaviconDriverObserver() {}
23 virtual ~FaviconDriverObserver() {}
25 // Called when favicon |image| is retrieved from either web site or cached
27 virtual void OnFaviconAvailable(const gfx::Image
& image
) = 0;
29 // Called when favicon has changed for the current page. |icon_url_changed| is
30 // true if the favicon URL has also changed.
31 virtual void OnFaviconUpdated(FaviconDriver
* favicon_driver
,
32 bool icon_url_changed
) = 0;
35 DISALLOW_COPY_AND_ASSIGN(FaviconDriverObserver
);
38 } // namespace favicon
40 #endif // COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_OBSERVER_H_