diff options
Diffstat (limited to 'content/public/browser/render_view_host.h')
-rw-r--r-- | content/public/browser/render_view_host.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/public/browser/render_view_host.h b/content/public/browser/render_view_host.h index 840be8c..2c4c25f 100644 --- a/content/public/browser/render_view_host.h +++ b/content/public/browser/render_view_host.h @@ -194,9 +194,14 @@ class CONTENT_EXPORT RenderViewHost : virtual public RenderWidgetHost { // RenderViewHostDelegate. virtual void SyncRendererPrefs() = 0; - // Returns the current WebKit preferences. + // Returns the current WebKit preferences. Note: WebPreferences is cached, so + // this lookup will be fast 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; |