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

Unified Diff: chrome/browser/ui/webui/ntp/ntp_resource_cache.h

Issue 7397021: Re-land r93365 - add RefCountedString (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 9 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c4a10e0ec944dd5322e9cfb047893010733cc1ec..67be6fce36fa9de72ab5b4f83379d20bc443dc96 100644
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.h
@@ -14,7 +14,7 @@
#include "content/common/notification_registrar.h"
class Profile;
-class RefCountedBytes;
+class RefCountedMemory;
// This class keeps a cache of NTP resources (HTML and CSS) so we don't have to
// regenerate them all the time.
@@ -24,8 +24,8 @@ class NTPResourceCache : public NotificationObserver,
explicit NTPResourceCache(Profile* profile);
virtual ~NTPResourceCache();
- RefCountedBytes* GetNewTabHTML(bool is_incognito);
- RefCountedBytes* GetNewTabCSS(bool is_incognito);
+ RefCountedMemory* GetNewTabHTML(bool is_incognito);
+ RefCountedMemory* GetNewTabCSS(bool is_incognito);
// NotificationObserver interface.
virtual void Observe(int type,
@@ -36,14 +36,14 @@ class NTPResourceCache : public NotificationObserver,
Profile* profile_;
void CreateNewTabIncognitoHTML();
- scoped_refptr<RefCountedBytes> new_tab_incognito_html_;
+ scoped_refptr<RefCountedMemory> new_tab_incognito_html_;
void CreateNewTabHTML();
- scoped_refptr<RefCountedBytes> new_tab_html_;
+ scoped_refptr<RefCountedMemory> new_tab_html_;
void CreateNewTabIncognitoCSS();
- scoped_refptr<RefCountedBytes> new_tab_incognito_css_;
+ scoped_refptr<RefCountedMemory> new_tab_incognito_css_;
void CreateNewTabCSS();
- scoped_refptr<RefCountedBytes> new_tab_css_;
+ scoped_refptr<RefCountedMemory> new_tab_css_;
NotificationRegistrar registrar_;
PrefChangeRegistrar pref_change_registrar_;
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698