Chromium Code Reviews| Index: chrome/browser/ui/webui/ntp/ntp_resource_cache.h |
| diff --git a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h |
| index 08f95643cfee4df4fb9f6dce41380a9181604fb9..7693a68b7a44443891328ed58dbd8ec2421d3a3b 100644 |
| --- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h |
| +++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h |
| @@ -26,6 +26,11 @@ class NTPResourceCache : public content::NotificationObserver, |
| explicit NTPResourceCache(Profile* profile); |
| virtual ~NTPResourceCache(); |
| + // Helper to determine if the resource cache should be invalidated. |
| + // This is called on every page load, and can be used to check values that |
| + // don't generate a notification when changed (e.g., system preferences). |
| + bool InvalidateNewTabCache(); |
| + |
| RefCountedMemory* GetNewTabHTML(bool is_incognito); |
| RefCountedMemory* GetNewTabCSS(bool is_incognito); |
| @@ -57,6 +62,8 @@ class NTPResourceCache : public content::NotificationObserver, |
| PrefChangeRegistrar pref_change_registrar_; |
| #endif |
| + bool isSwipeTrackingFromScrollEventsEnabled_; |
|
Evan Stade
2012/04/17 21:29:53
comment (this is where I'd put the comment that yo
Patrick Dubroy
2012/04/18 14:43:06
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); |
| }; |