summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 16:03:42 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-19 16:03:42 +0000
commit523623c62f291467769fbb3c0e7fd5c1709b4da1 (patch)
treef7ffe236605e0d56d89bd7c6c5e8785662be166d /chrome/browser/profile.h
parentd0cc0f3d2c1216d2c2168690f64dc448d3ac9ca8 (diff)
downloadchromium_src-523623c62f291467769fbb3c0e7fd5c1709b4da1.zip
chromium_src-523623c62f291467769fbb3c0e7fd5c1709b4da1.tar.gz
chromium_src-523623c62f291467769fbb3c0e7fd5c1709b4da1.tar.bz2
Add command line flag --top-sites to replace the thumbnail store flag.
Use the flag for querying for thumbnails. Add timer to update TopSites (every second for now). BUG=None TEST='chrome --top-sites' git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47671 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r--chrome/browser/profile.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h
index 9871d77..118608c 100644
--- a/chrome/browser/profile.h
+++ b/chrome/browser/profile.h
@@ -25,6 +25,10 @@ namespace chrome_common_net {
class NetworkChangeNotifierThread;
}
+namespace history {
+class TopSites;
+}
+
namespace net {
class TransportSecurityState;
class SSLConfigService;
@@ -155,6 +159,10 @@ class Profile {
// Returns a pointer to the DatabaseTracker instance for this profile.
virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0;
+ // Returns a pointer to the TopSites (thumbnail manager) instance
+ // for this profile.
+ virtual history::TopSites* GetTopSites() = 0;
+
// Retrieves a pointer to the VisitedLinkMaster associated with this
// profile. The VisitedLinkMaster is lazily created the first time
// that this method is called.
@@ -469,6 +477,7 @@ class ProfileImpl : public Profile,
virtual void DestroyOffTheRecordProfile();
virtual Profile* GetOriginalProfile();
virtual webkit_database::DatabaseTracker* GetDatabaseTracker();
+ virtual history::TopSites* GetTopSites();
virtual VisitedLinkMaster* GetVisitedLinkMaster();
virtual UserScriptMaster* GetUserScriptMaster();
virtual SSLHostState* GetSSLHostState();
@@ -652,6 +661,8 @@ class ProfileImpl : public Profile,
// Should be used only on the file thread.
scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
+ scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
+
#if defined(OS_CHROMEOS)
chromeos::Preferences chromeos_preferences_;
#endif