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

Side by Side Diff: components/favicon/core/favicon_driver.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_ 5 #ifndef COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_
6 #define COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_ 6 #define COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_
7 7
8 class GURL; 8 class GURL;
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Sets the bitmap of the current page's favicon. Requires GetActiveURL() to 54 // Sets the bitmap of the current page's favicon. Requires GetActiveURL() to
55 // be valid. 55 // be valid.
56 virtual void SetActiveFaviconImage(gfx::Image image) = 0; 56 virtual void SetActiveFaviconImage(gfx::Image image) = 0;
57 57
58 // Sets the URL of the favicon's bitmap. Requires GetActiveURL() to be valid. 58 // Sets the URL of the favicon's bitmap. Requires GetActiveURL() to be valid.
59 virtual void SetActiveFaviconURL(GURL url) = 0; 59 virtual void SetActiveFaviconURL(GURL url) = 0;
60 60
61 // Sets whether the page's favicon is valid (if false, the default favicon is 61 // Sets whether the page's favicon is valid (if false, the default favicon is
62 // being used). Requires GetActiveURL() to be valid. 62 // being used). Requires GetActiveURL() to be valid.
63 virtual void SetActiveFaviconValidity(bool validity) = 0; 63 virtual void SetActiveFaviconValidity(bool validity) = 0;
64
65 // Notifies the driver favicon |image| is available to use.
66 virtual void OnFaviconAvailable(const gfx::Image& image) = 0;
sky 2014/10/30 03:34:31 Can we leave the FaviconHandler as it was, meaning
michaelbai 2014/10/30 19:22:50 Let me know if you are happy with new patch.
64 }; 67 };
65 68
66 #endif // COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_ 69 #endif // COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_
OLDNEW
« chrome/browser/favicon/favicon_handler.cc ('K') | « chrome/browser/favicon/favicon_tab_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698