From 449478308895f2f09eacfb4971b9917627aa3152 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 9 Jun 2009 20:04:28 +0000 Subject: Modified ThumbnailStore to cache/store JPEGs instead of SkBitmaps. Add command line flag "--thumbnail-store" to enable using the ThumbnailStore facility instead of the current ThumbnailDatabase. Original review: http://codereview.chromium.org/118409 Patch by Meelap Shah git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17971 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/profile.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'chrome/browser/profile.h') diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index d5e800f..0c6179e 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -24,6 +24,7 @@ namespace net { class ForceTLSState; } class BookmarkModel; +class BrowserThemeProvider; class ChromeURLRequestContext; class DownloadManager; class Extension; @@ -40,7 +41,7 @@ class SQLitePersistentCookieStore; class TabRestoreService; class TemplateURLFetcher; class TemplateURLModel; -class BrowserThemeProvider; +class ThumbnailStore; class URLRequestContext; class UserScriptMaster; class VisitedLinkMaster; @@ -190,6 +191,8 @@ class Profile { // Returns or creates the ThemeProvider associated with this profile virtual ThemeProvider* GetThemeProvider() = 0; + virtual ThumbnailStore* GetThumbnailStore() = 0; + // Returns the request context information associated with this profile. Call // this only on the UI thread, since it can send notifications that should // happen on the UI thread. @@ -327,6 +330,7 @@ class ProfileImpl : public Profile, virtual void SetTheme(Extension* extension); virtual void ClearTheme(); virtual ThemeProvider* GetThemeProvider(); + virtual ThumbnailStore* GetThumbnailStore(); virtual bool HasCreatedDownloadManager() const; virtual URLRequestContext* GetRequestContext(); virtual URLRequestContext* GetRequestContextForMedia(); @@ -391,6 +395,7 @@ class ProfileImpl : public Profile, scoped_ptr ssl_host_state_; scoped_ptr force_tls_state_; scoped_ptr prefs_; + scoped_refptr thumbnail_store_; scoped_ptr template_url_fetcher_; scoped_ptr template_url_model_; scoped_ptr bookmark_bar_model_; -- cgit v1.1