diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 17:50:42 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-19 17:50:42 +0000 |
commit | 9c8dd907b6576fe18206bcd799efc1e5cdbacce7 (patch) | |
tree | e4713e517df0c73010dd2d99d16c6f89b6af230e /chrome/test | |
parent | 0efe30de7097be6fc6f9dd9b9ad167f40e437e7c (diff) | |
download | chromium_src-9c8dd907b6576fe18206bcd799efc1e5cdbacce7.zip chromium_src-9c8dd907b6576fe18206bcd799efc1e5cdbacce7.tar.gz chromium_src-9c8dd907b6576fe18206bcd799efc1e5cdbacce7.tar.bz2 |
Implement a NTP resource cache. Instead of re-generating the
HTML for the NTP each time, keep a cached copy as part of the
profile.
- This changes the handling of StartDataRequest to always happen
on the UI thread since it needs to use the Profile. Previously
we would generate on the UI thread then handle all the requests
on the IO thread.
- first_view_ got changed into a static bool. I also removed it
from being added to the json because it didn't appear to be used
anywhere.
- Merge the incognito and regular handler into one since I added
that as a flag to the request in a previous change.
I plan to add the CSS to NTPResourceCache next.
BUG=23120
Review URL: http://codereview.chromium.org/399055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32520 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r-- | chrome/test/testing_profile.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h index 14b64da..40b6896 100644 --- a/chrome/test/testing_profile.h +++ b/chrome/test/testing_profile.h @@ -187,6 +187,7 @@ class TestingProfile : public Profile { virtual void MarkAsCleanShutdown() {} virtual void InitExtensions() {} virtual void InitWebResources() {} + virtual NTPResourceCache* GetNTPResourceCache() { return NULL; } virtual DesktopNotificationService* GetDesktopNotificationService() { return NULL; } |