Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1847)

Unified Diff: chrome/browser/net/chrome_network_delegate.h

Issue 7346024: Get rid of the ProfileId. It was added for ceee. I reverted the original change, since it led to ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate.h
===================================================================
--- chrome/browser/net/chrome_network_delegate.h (revision 92309)
+++ chrome/browser/net/chrome_network_delegate.h (working copy)
@@ -9,11 +9,11 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
-#include "chrome/browser/profiles/profile.h"
#include "net/base/network_delegate.h"
class ExtensionEventRouterForwarder;
class ExtensionInfoMap;
+class PrefService;
template<class T> class PrefMember;
typedef PrefMember<bool> BooleanPrefMember;
@@ -22,15 +22,15 @@
// add hooks into the network stack.
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.
+ // If |profile| is NULL, events will be broadcasted to all profiles, otherwise
+ // they will only be sent to the specified profile.
// |enable_referrers| should be initialized on the UI thread (see below)
// beforehand. This object's owner is responsible for cleaning it up
// at shutdown.
ChromeNetworkDelegate(
ExtensionEventRouterForwarder* event_router,
ExtensionInfoMap* extension_info_map,
- ProfileId profile_id,
+ void* profile,
BooleanPrefMember* enable_referrers);
virtual ~ChromeNetworkDelegate();
@@ -60,7 +60,7 @@
virtual void OnPACScriptError(int line_number, const string16& error);
scoped_refptr<ExtensionEventRouterForwarder> event_router_;
- const ProfileId profile_id_;
+ void* profile_;
scoped_refptr<ExtensionInfoMap> extension_info_map_;
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698