Update V8 to version 4.6.62.
[chromium-blink-merge.git] / components / favicon / core / favicon_driver_observer.h
blobeb3fd48f61ef712aa9fe1510eb5087019d504552
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"
10 namespace gfx {
11 class Image;
14 namespace favicon {
16 class FaviconDriver;
18 // An observer implemented by classes which are interested in event from
19 // FaviconDriver.
20 class FaviconDriverObserver {
21 public:
22 FaviconDriverObserver() {}
23 virtual ~FaviconDriverObserver() {}
25 // Called when favicon |image| is retrieved from either web site or cached
26 // storage.
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;
34 private:
35 DISALLOW_COPY_AND_ASSIGN(FaviconDriverObserver);
38 } // namespace favicon
40 #endif // COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_OBSERVER_H_