Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: content/public/browser/render_view_host.h

Issue 373323003: Cache the current WebPreferences on RenderViewHostImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/browser/render_view_host.h
diff --git a/content/public/browser/render_view_host.h b/content/public/browser/render_view_host.h
index 840be8cb0667364800fa7e94129742a2f4207daa..6347ba322801dfd5e3513c12396e6cffdab72e17 100644
--- a/content/public/browser/render_view_host.h
+++ b/content/public/browser/render_view_host.h
@@ -197,6 +197,10 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost {
// Returns the current WebKit preferences.
jam 2014/07/21 17:40:33 nit: now that the behavior of this method changed
chrishtr 2014/07/21 18:16:07 Done.
virtual WebPreferences GetWebkitPreferences() = 0;
+ // If any state that affects the webkit preferences changed, this method must
+ // be called. This triggers recomputing preferences.
+ virtual void OnWebkitPreferencesChanged() = 0;
+
// Passes a list of Webkit preferences to the renderer.
virtual void UpdateWebkitPreferences(const WebPreferences& prefs) = 0;

Powered by Google App Engine
This is Rietveld 408576698