Index: content/browser/renderer_host/render_view_host_impl.h |
diff --git a/content/browser/renderer_host/render_view_host_impl.h b/content/browser/renderer_host/render_view_host_impl.h |
index 204d31ce3d840f09dc28297a9770340208af87f1..a15c1131f8e3b77a191b9c8ff76bacbe3428ae69 100644 |
--- a/content/browser/renderer_host/render_view_host_impl.h |
+++ b/content/browser/renderer_host/render_view_host_impl.h |
@@ -207,6 +207,7 @@ class CONTENT_EXPORT RenderViewHostImpl |
virtual WebPreferences GetWebkitPreferences() OVERRIDE; |
virtual void UpdateWebkitPreferences( |
const WebPreferences& prefs) OVERRIDE; |
+ virtual void OnWebkitPreferencesChanged() OVERRIDE; |
virtual void GetAudioOutputControllers( |
const GetAudioOutputControllersCallback& callback) const OVERRIDE; |
virtual void SelectWordAroundCaret() OVERRIDE; |
@@ -244,7 +245,7 @@ class CONTENT_EXPORT RenderViewHostImpl |
} |
// Returns the content specific prefs for this RenderViewHost. |
- WebPreferences GetWebkitPrefs(const GURL& url); |
+ WebPreferences ComputeWebkitPrefs(const GURL& url); |
// Sends the given navigation message. Use this rather than sending it |
// yourself since this does the internal bookkeeping described below. This |
@@ -644,6 +645,11 @@ class CONTENT_EXPORT RenderViewHostImpl |
// True if the current focused element is editable. |
bool is_focused_element_editable_; |
+ // This is updated every time UpdateWebkitPreferences is called. That method |
+ // is in turn called when any of the settings change that the WebPreferences |
+ // values depend on. |
+ scoped_ptr<WebPreferences> web_preferences_; |
+ |
DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
}; |