Index: chrome/browser/ui/tab_contents/tab_contents_wrapper.h |
=================================================================== |
--- chrome/browser/ui/tab_contents/tab_contents_wrapper.h (revision 86494) |
+++ chrome/browser/ui/tab_contents/tab_contents_wrapper.h (working copy) |
@@ -12,6 +12,7 @@ |
#include "base/basictypes.h" |
#include "base/compiler_specific.h" |
#include "base/memory/scoped_ptr.h" |
+#include "chrome/browser/prefs/pref_change_registrar.h" |
#include "chrome/browser/printing/print_view_manager.h" |
#include "content/browser/tab_contents/tab_contents.h" |
#include "content/browser/tab_contents/tab_contents_observer.h" |
@@ -174,6 +175,7 @@ |
// Overrides ----------------------------------------------------------------- |
// TabContentsObserver overrides: |
+ virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; |
virtual void RenderViewGone() OVERRIDE; |
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
@@ -213,6 +215,19 @@ |
void OnSnapshot(const SkBitmap& bitmap); |
void OnPDFHasUnsupportedFeature(); |
+ // Returns the server that can provide alternate error pages. If the returned |
+ // URL is empty, the default error page built into WebKit will be used. |
+ GURL GetAlternateErrorPageURL() const; |
+ |
+ // Send the alternate error page URL to the renderer. |
+ void UpdateAlternateErrorPageURL(RenderViewHost* rvh); |
+ |
+ // Update the RenderView's WebPreferences. |
+ void UpdateWebPreferences(); |
+ |
+ // Update the TabContents's RendererPreferences. |
+ void UpdateRendererPreferences(); |
+ |
// Data for core operation --------------------------------------------------- |
// Delegate for notifying our owner about stuff. Not owned by us. |
@@ -223,6 +238,7 @@ |
bool infobars_enabled_; |
NotificationRegistrar registrar_; |
+ PrefChangeRegistrar pref_change_registrar_; |
// Data for current page ----------------------------------------------------- |