OLD | NEW |
---|---|
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 Loading... | |
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_ |
OLD | NEW |