Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: components/favicon/core/favicon_driver.cc

Issue 1064823002: Componentize FaviconTabHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@favicon-notification
Patch Set: Fix BUILD.gn Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/favicon/core/favicon_driver.h ('k') | components/favicon/core/favicon_driver_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "components/favicon/core/favicon_driver.h"
6
7 #include "components/favicon/core/favicon_driver_observer.h"
8
9 namespace favicon {
10
11 void FaviconDriver::AddObserver(FaviconDriverObserver* observer) {
12 observer_list_.AddObserver(observer);
13 }
14
15 void FaviconDriver::RemoveObserver(FaviconDriverObserver* observer) {
16 observer_list_.RemoveObserver(observer);
17 }
18
19 FaviconDriver::FaviconDriver() {
20 }
21
22 FaviconDriver::~FaviconDriver() {
23 }
24
25 void FaviconDriver::NotifyFaviconAvailable(const gfx::Image& image) {
26 FOR_EACH_OBSERVER(FaviconDriverObserver, observer_list_,
27 OnFaviconAvailable(image));
28 }
29
30 void FaviconDriver::NotifyFaviconUpdated(bool icon_url_changed) {
31 FOR_EACH_OBSERVER(FaviconDriverObserver, observer_list_,
32 OnFaviconUpdated(this, icon_url_changed));
33 }
34
35 } // namespace favicon
OLDNEW
« no previous file with comments | « components/favicon/core/favicon_driver.h ('k') | components/favicon/core/favicon_driver_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698