From e25bbc6831ccc2d0a924c3b0d8ce79469beff32c Mon Sep 17 00:00:00 2001 From: "chrishtr@chromium.org" Date: Tue, 22 Jul 2014 02:10:36 +0000 Subject: 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 --- content/browser/web_contents/web_contents_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/browser/web_contents/web_contents_impl.h') 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, -- cgit v1.1