Index: chrome/browser/renderer_host/browser_render_process_host.h |
diff --git a/chrome/browser/renderer_host/browser_render_process_host.h b/chrome/browser/renderer_host/browser_render_process_host.h |
index 9de0b0c66d6230d003d34299e85333fe770b78d5..198bfb5ef7c01df5353673e9d4e3c1c5587cb658 100644 |
--- a/chrome/browser/renderer_host/browser_render_process_host.h |
+++ b/chrome/browser/renderer_host/browser_render_process_host.h |
@@ -15,6 +15,7 @@ |
#include "base/platform_file.h" |
#include "base/process.h" |
#include "base/timer.h" |
+#include "chrome/browser/prefs/pref_change_registrar.h" |
#include "chrome/common/extensions/extension.h" |
#include "content/browser/child_process_launcher.h" |
#include "content/browser/renderer_host/render_process_host.h" |
@@ -26,6 +27,7 @@ |
class CommandLine; |
class RendererMainThread; |
class RenderWidgetHelper; |
+class ResourceMessageFilter; |
class VisitedLinkUpdater; |
namespace base { |
@@ -165,6 +167,9 @@ class BrowserRenderProcessHost : public RenderProcessHost, |
// the model file. |
void OpenPhishingModelDone(base::PlatformFile model_file); |
+ // Tells the ResourceMessageFilter whether to enable referrers. |
+ void UpdateReferrersEnabled(); |
+ |
NotificationRegistrar registrar_; |
// The count of currently visible widgets. Since the host can be a container |
@@ -206,6 +211,12 @@ class BrowserRenderProcessHost : public RenderProcessHost, |
// when running in single-process mode. |
bool extension_process_; |
+ // Observes the |kEnableReferrers| preference. |
+ PrefChangeRegistrar pref_change_registrar_; |
+ |
+ // Weak, owned by |channel_|. |
jam
2011/03/29 18:17:16
what happens if OnChannelError() is called? chann
Bernhard Bauer
2011/03/29 19:26:58
I guess I should set the pointer to NULL in OnChan
|
+ ResourceMessageFilter* resource_message_filter_; |
+ |
// The Extension for the hosted or packaged app if any, NULL otherwise. |
scoped_refptr<const Extension> installed_app_; |