forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfavicon_driver.cc
34 lines (26 loc) · 962 Bytes
/
favicon_driver.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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"
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::NotifyFaviconUpdatedObservers(
FaviconDriverObserver::NotificationIconType notification_icon_type,
const GURL& icon_url,
bool icon_url_changed,
const gfx::Image& image) {
for (FaviconDriverObserver& observer : observer_list_) {
observer.OnFaviconUpdated(this, notification_icon_type, icon_url,
icon_url_changed, image);
}
}
} // namespace favicon