| 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 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // Informs FaviconDriverObservers that favicon |image| has been retrieved from | 108 // Informs FaviconDriverObservers that favicon |image| has been retrieved from |
| 109 // either website or cached storage. | 109 // either website or cached storage. |
| 110 void NotifyFaviconAvailable(const gfx::Image& image); | 110 void NotifyFaviconAvailable(const gfx::Image& image); |
| 111 | 111 |
| 112 // Informs FaviconDriverObservers that favicon has changed for the current | 112 // Informs FaviconDriverObservers that favicon has changed for the current |
| 113 // page. |icon_url_changed| is true if the favicon URL has also changed since | 113 // page. |icon_url_changed| is true if the favicon URL has also changed since |
| 114 // the last call. | 114 // the last call. |
| 115 virtual void NotifyFaviconUpdated(bool icon_url_changed); | 115 virtual void NotifyFaviconUpdated(bool icon_url_changed); |
| 116 | 116 |
| 117 private: | 117 private: |
| 118 ObserverList<FaviconDriverObserver> observer_list_; | 118 base::ObserverList<FaviconDriverObserver> observer_list_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(FaviconDriver); | 120 DISALLOW_COPY_AND_ASSIGN(FaviconDriver); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace favicon | 123 } // namespace favicon |
| 124 | 124 |
| 125 #endif // COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_ | 125 #endif // COMPONENTS_FAVICON_CORE_FAVICON_DRIVER_H_ |
| OLD | NEW |