summaryrefslogtreecommitdiffstats
path: root/content/public/test/web_contents_tester.h
diff options
context:
space:
mode:
authorchrishtr@chromium.org <chrishtr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-08 21:31:30 +0000
committerchrishtr@chromium.org <chrishtr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-08 21:31:30 +0000
commitda3d7e4c5c71e71ba7b8e1517e6d14bf747f591e (patch)
tree9ab57028d6d9227d18df5a5c262128f6c95051c4 /content/public/test/web_contents_tester.h
parentc165e8d5af73c63df563e0286cc1814e4d997afd (diff)
downloadchromium_src-da3d7e4c5c71e71ba7b8e1517e6d14bf747f591e.zip
chromium_src-da3d7e4c5c71e71ba7b8e1517e6d14bf747f591e.tar.gz
chromium_src-da3d7e4c5c71e71ba7b8e1517e6d14bf747f591e.tar.bz2
Cache the current WebPreferences on RenderViewHostImpl (try #2).
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. The first version was rolled back because some code in Blink that listened for inspector prefs updates incorrectly sent the preference update back to Chromium, causing an infinite loop. BUG=390799 Review URL: https://codereview.chromium.org/444843002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/test/web_contents_tester.h')
-rw-r--r--content/public/test/web_contents_tester.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/public/test/web_contents_tester.h b/content/public/test/web_contents_tester.h
index 73ccb7e..c3b52fc 100644
--- a/content/public/test/web_contents_tester.h
+++ b/content/public/test/web_contents_tester.h
@@ -86,8 +86,8 @@ class WebContentsTester {
const Referrer& referrer,
PageTransition transition) = 0;
- // Promote GetWebkitPrefs to public.
- virtual WebPreferences TestGetWebkitPrefs() = 0;
+ // Promote ComputeWebkitPrefs to public.
+ virtual WebPreferences TestComputeWebkitPrefs() = 0;
};
} // namespace content