blob: 00632292c6a889942a4a546c958d870bc6353b7e [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/favicon/core/favicon_driver.h"
#include "components/favicon/core/favicon_driver_observer.h"
namespace favicon {
void FaviconDriver::AddObserver(FaviconDriverObserver* observer) {
observer_list_.AddObserver(observer);
}
void FaviconDriver::RemoveObserver(FaviconDriverObserver* observer) {
observer_list_.RemoveObserver(observer);
}
FaviconDriver::FaviconDriver() {
}
FaviconDriver::~FaviconDriver() {
}
void FaviconDriver::NotifyFaviconAvailable(const gfx::Image& image) {
FOR_EACH_OBSERVER(FaviconDriverObserver, observer_list_,
OnFaviconAvailable(image));
}
void FaviconDriver::NotifyFaviconUpdated(bool icon_url_changed) {
FOR_EACH_OBSERVER(FaviconDriverObserver, observer_list_,
OnFaviconUpdated(this, icon_url_changed));
}
} // namespace favicon