Vectorize website settings icons in omnibox
[chromium-blink-merge.git] / components / favicon / core / favicon_driver.cc
blob00632292c6a889942a4a546c958d870bc6353b7e
1 // Copyright 2015 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 #include "components/favicon/core/favicon_driver.h"
7 #include "components/favicon/core/favicon_driver_observer.h"
9 namespace favicon {
11 void FaviconDriver::AddObserver(FaviconDriverObserver* observer) {
12 observer_list_.AddObserver(observer);
15 void FaviconDriver::RemoveObserver(FaviconDriverObserver* observer) {
16 observer_list_.RemoveObserver(observer);
19 FaviconDriver::FaviconDriver() {
22 FaviconDriver::~FaviconDriver() {
25 void FaviconDriver::NotifyFaviconAvailable(const gfx::Image& image) {
26 FOR_EACH_OBSERVER(FaviconDriverObserver, observer_list_,
27 OnFaviconAvailable(image));
30 void FaviconDriver::NotifyFaviconUpdated(bool icon_url_changed) {
31 FOR_EACH_OBSERVER(FaviconDriverObserver, observer_list_,
32 OnFaviconUpdated(this, icon_url_changed));
35 } // namespace favicon