diff options
author | meelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 01:22:25 +0000 |
---|---|---|
committer | meelapshah@chromium.org <meelapshah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 01:22:25 +0000 |
commit | daa82dc7442d26d9a50e342c0d9dcee43f287df8 (patch) | |
tree | be3c211a383852579223f57be9c1ee13b84c1f6d /chrome/common | |
parent | abaa71c990b2d9dd514e9f2eefb1d2cf7b720562 (diff) | |
download | chromium_src-daa82dc7442d26d9a50e342c0d9dcee43f287df8.zip chromium_src-daa82dc7442d26d9a50e342c0d9dcee43f287df8.tar.gz chromium_src-daa82dc7442d26d9a50e342c0d9dcee43f287df8.tar.bz2 |
Make ThumbnailStore broadcast a notification when it has finished reading thumbnails from disk.
Make DOMUIThumbnailSource wait for this notification if ThumbnailStore isn't ready yet.
Also clean up some of the code.
Review URL: http://codereview.chromium.org/155911
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21785 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_constants.cc | 1 | ||||
-rw-r--r-- | chrome/common/chrome_constants.h | 1 | ||||
-rw-r--r-- | chrome/common/notification_type.h | 6 |
3 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/chrome_constants.cc b/chrome/common/chrome_constants.cc index fbedb7c..2b32993 100644 --- a/chrome/common/chrome_constants.cc +++ b/chrome/common/chrome_constants.cc @@ -68,6 +68,7 @@ const FilePath::CharType kSafeBrowsingFilename[] = FPL("Safe Browsing"); // chrome_process_util_linux would be broken. const FilePath::CharType kSingletonSocketFilename[] = FPL("SingletonSocket"); const FilePath::CharType kThumbnailsFilename[] = FPL("Thumbnails"); +const FilePath::CharType kNewTabThumbnailsFilename[] = FPL("Top Thumbnails"); const wchar_t kUserDataDirname[] = L"User Data"; const FilePath::CharType kUserScriptsDirname[] = FPL("User Scripts"); const FilePath::CharType kWebDataFilename[] = FPL("Web Data"); diff --git a/chrome/common/chrome_constants.h b/chrome/common/chrome_constants.h index 4f9f4a1..350c835 100644 --- a/chrome/common/chrome_constants.h +++ b/chrome/common/chrome_constants.h @@ -37,6 +37,7 @@ extern const FilePath::CharType kPreferencesFilename[]; extern const FilePath::CharType kSafeBrowsingFilename[]; extern const FilePath::CharType kSingletonSocketFilename[]; extern const FilePath::CharType kThumbnailsFilename[]; +extern const FilePath::CharType kNewTabThumbnailsFilename[]; extern const wchar_t kUserDataDirname[]; extern const FilePath::CharType kUserScriptsDirname[]; extern const FilePath::CharType kWebDataFilename[]; diff --git a/chrome/common/notification_type.h b/chrome/common/notification_type.h index 221bf32..04fc94f 100644 --- a/chrome/common/notification_type.h +++ b/chrome/common/notification_type.h @@ -471,6 +471,12 @@ class NotificationType { // history_notifications.h). FAVICON_CHANGED, + // Thumbnails--------------------------------------------------------------- + + // Set by ThumbnailStore when it was finished loading data from disk on + // startup. + THUMBNAIL_STORE_READY, + // Bookmarks --------------------------------------------------------------- // Sent when the starred state of a URL changes. A URL is starred if there |