Index: components/favicon/core/favicon_driver.cc |
diff --git a/components/favicon/core/favicon_driver.cc b/components/favicon/core/favicon_driver.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..00632292c6a889942a4a546c958d870bc6353b7e |
--- /dev/null |
+++ b/components/favicon/core/favicon_driver.cc |
@@ -0,0 +1,35 @@ |
+// 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 |