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

Unified Diff: chrome/browser/favicon/favicon_tab_helper_observer.h

Issue 684983003: Add Observer in FaviconTabHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/favicon/favicon_tab_helper.cc ('k') | chrome/browser/favicon/favicon_tab_helper_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_tab_helper_observer.h
diff --git a/chrome/browser/favicon/favicon_tab_helper_observer.h b/chrome/browser/favicon/favicon_tab_helper_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..40c0e6efe0b231749c7f22c5b3ba211646753c2f
--- /dev/null
+++ b/chrome/browser/favicon/favicon_tab_helper_observer.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
sky 2014/11/04 21:06:31 style guide says no more (c).
michaelbai 2014/11/04 21:51:27 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_FAVICON_FAVICON_TAB_HELPER_OBSERVER_H_
+#define CHROME_BROWSER_FAVICON_FAVICON_TAB_HELPER_OBSERVER_H_
+
+namespace gfx {
+class Image;
+}
+
+// An observer implemented by classes which are interested in envent in
+// FaviconTabHelper.
+class FaviconTabHelperObserver {
+ public:
+ // Called when favicon |image| is retrieved from either web site or history
+ // backend.
+ virtual void OnFaviconAvailable(const gfx::Image& image) = 0;
+
+ protected:
+ virtual ~FaviconTabHelperObserver();
sky 2014/11/04 21:06:31 You can inline the destructor and nuke the .cc.
michaelbai 2014/11/04 21:51:27 Done.
+};
+
+#endif // CHROME_BROWSER_FAVICON_FAVICON_TAB_HELPER_OBSERVER_H_
« no previous file with comments | « chrome/browser/favicon/favicon_tab_helper.cc ('k') | chrome/browser/favicon/favicon_tab_helper_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698