| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_DOM_UI_NTP_RESOURCE_CACHE_H_ | 5 #ifndef CHROME_BROWSER_DOM_UI_NTP_RESOURCE_CACHE_H_ |
| 6 #define CHROME_BROWSER_DOM_UI_NTP_RESOURCE_CACHE_H_ | 6 #define CHROME_BROWSER_DOM_UI_NTP_RESOURCE_CACHE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 12 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| 13 #include "chrome/common/notification_registrar.h" | 11 #include "chrome/common/notification_registrar.h" |
| 14 | 12 |
| 15 class Profile; | 13 class Profile; |
| 16 class RefCountedBytes; | 14 class RefCountedBytes; |
| 17 | 15 |
| 18 // This class keeps a cache of NTP resources (HTML and CSS) so we don't have to | 16 // This class keeps a cache of NTP resources (HTML and CSS) so we don't have to |
| 19 // regenerate them all the time. | 17 // regenerate them all the time. |
| 20 class NTPResourceCache : public NotificationObserver { | 18 class NTPResourceCache : public NotificationObserver { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 42 scoped_refptr<RefCountedBytes> new_tab_incognito_css_; | 40 scoped_refptr<RefCountedBytes> new_tab_incognito_css_; |
| 43 void CreateNewTabCSS(); | 41 void CreateNewTabCSS(); |
| 44 scoped_refptr<RefCountedBytes> new_tab_css_; | 42 scoped_refptr<RefCountedBytes> new_tab_css_; |
| 45 | 43 |
| 46 NotificationRegistrar registrar_; | 44 NotificationRegistrar registrar_; |
| 47 | 45 |
| 48 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); | 46 DISALLOW_COPY_AND_ASSIGN(NTPResourceCache); |
| 49 }; | 47 }; |
| 50 | 48 |
| 51 #endif // CHROME_BROWSER_DOM_UI_NTP_RESOURCE_CACHE_H_ | 49 #endif // CHROME_BROWSER_DOM_UI_NTP_RESOURCE_CACHE_H_ |
| OLD | NEW |