Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / components / favicon / core / favicon_driver_observer.h
blobcc134d23a99a7357d9db162e4091a2dadee9dc8e
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 // An observer implemented by classes which are interested in event from
17 // FaviconDriver.
18 class FaviconDriverObserver {
19 public:
20 FaviconDriverObserver() {}
21 virtual ~FaviconDriverObserver() {}
23 // Called when favicon |image| is retrieved from either web site or cached
24 // storage.
25 virtual void OnFaviconAvailable(const gfx::Image& image) = 0;
27 private:
28 DISALLOW_COPY_AND_ASSIGN(FaviconDriverObserver);
31 } // namespace favicon
33 #endif // COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_OBSERVER_H_