Index: chrome/browser/net/chrome_network_delegate.h |
diff --git a/chrome/browser/net/chrome_network_delegate.h b/chrome/browser/net/chrome_network_delegate.h |
index 9c75dd95a891c93979e77add9db9e19f534a8876..739c809c85335ab996f6ce087be1eda41a3e1c9c 100644 |
--- a/chrome/browser/net/chrome_network_delegate.h |
+++ b/chrome/browser/net/chrome_network_delegate.h |
@@ -8,6 +8,8 @@ |
#include "base/basictypes.h" |
#include "base/memory/ref_counted.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "chrome/browser/prefs/pref_member.h" |
#include "chrome/browser/profiles/profile.h" |
#include "net/base/network_delegate.h" |
@@ -20,9 +22,13 @@ class ChromeNetworkDelegate : public net::NetworkDelegate { |
public: |
// If |profile_id| is the invalid profile, events will be broadcasted to all |
// profiles, otherwise, they will only be sent to the specified profile. |
+ // |enable_referrers| is a PrefMember which should be bound to the profile's |
+ // PrefService and moved to the IO thread. It can be NULL. This object will |
willchan no longer on Chromium
2011/04/05 13:10:41
Why are you allowing it to be NULL? Does it crash
Bernhard Bauer
2011/04/05 14:49:02
Yeah, I thought about adding support for the pref
willchan no longer on Chromium
2011/04/05 15:06:18
I think I'd prefer this, but I don't feel too stro
Bernhard Bauer
2011/04/05 16:12:59
Fair enough. Done.
|
+ // take ownership of it. |
explicit ChromeNetworkDelegate( |
ExtensionEventRouterForwarder* event_router, |
ProfileId profile_id, |
+ BooleanPrefMember* enable_referrers, |
ProtocolHandlerRegistry* protocol_handler_registry); |
virtual ~ChromeNetworkDelegate(); |
@@ -41,6 +47,7 @@ class ChromeNetworkDelegate : public net::NetworkDelegate { |
scoped_refptr<ExtensionEventRouterForwarder> event_router_; |
const ProfileId profile_id_; |
+ scoped_ptr<BooleanPrefMember> enable_referrers_; |
scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; |
DISALLOW_COPY_AND_ASSIGN(ChromeNetworkDelegate); |
}; |