summaryrefslogtreecommitdiffstats
path: root/content/browser/web_contents/web_contents_impl.h
diff options
context:
space:
mode:
authorchrishtr@chromium.org <chrishtr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-22 02:10:36 +0000
committerchrishtr@chromium.org <chrishtr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-22 02:10:36 +0000
commite25bbc6831ccc2d0a924c3b0d8ce79469beff32c (patch)
treeaef9fcdf79e69a141f0625d4c0cc39b3d75ec3bc /content/browser/web_contents/web_contents_impl.h
parent686474c7f1a4c06b092fc8fd9ff91e49aa41c274 (diff)
downloadchromium_src-e25bbc6831ccc2d0a924c3b0d8ce79469beff32c.zip
chromium_src-e25bbc6831ccc2d0a924c3b0d8ce79469beff32c.tar.gz
chromium_src-e25bbc6831ccc2d0a924c3b0d8ce79469beff32c.tar.bz2
Cache the current WebPreferences on RenderViewHostImpl.
This makes lookups of a WebPreferences field fast. In order do this, add code to listen to all preferences updates in order to recompute the cache. BUG=390799 Review URL: https://codereview.chromium.org/373323003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284592 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/web_contents/web_contents_impl.h')
-rw-r--r--content/browser/web_contents/web_contents_impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index b001642..895ad19 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -389,7 +389,7 @@ class CONTENT_EXPORT WebContentsImpl
const base::string16& source_id) OVERRIDE;
virtual RendererPreferences GetRendererPrefs(
BrowserContext* browser_context) const OVERRIDE;
- virtual WebPreferences GetWebkitPrefs() OVERRIDE;
+ virtual WebPreferences ComputeWebkitPrefs() OVERRIDE;
virtual void OnUserGesture() OVERRIDE;
virtual void OnIgnoredUIEvent() OVERRIDE;
virtual void RendererUnresponsive(RenderViewHost* render_view_host,