Index: chrome/browser/web_resource/web_resource_service.h |
=================================================================== |
--- chrome/browser/web_resource/web_resource_service.h (revision 88476) |
+++ chrome/browser/web_resource/web_resource_service.h (working copy) |
@@ -12,6 +12,7 @@ |
#include "content/common/notification_type.h" |
class PrefService; |
+class Profile; |
class ResourceDispatcherHost; |
// A WebResourceService fetches data from a web resource server and store |
@@ -21,7 +22,8 @@ |
public: |
// Pass notification_type = NOTIFICATION_TYPE_COUNT if notification is not |
// required. |
- WebResourceService(PrefService* prefs, |
+ WebResourceService(Profile* profile, |
+ PrefService* prefs, |
const char* web_resource_server, |
bool apply_locale_to_url_, |
NotificationType::Type notification_type, |
@@ -51,6 +53,8 @@ |
// and get proper install directory. |
PrefService* prefs_; |
+ Profile* profile_; |
+ |
private: |
class WebResourceFetcher; |
friend class WebResourceFetcher; |
@@ -80,9 +84,7 @@ |
// kCacheUpdateDelay time, and silently exit. |
bool in_fetch_; |
- // URL that hosts the web resource. This URL will be loaded with a |
- // SystemURLRequestContext, so should not depend on Profile request context |
- // data (see http://codereview.chromium.org/7099004/). |
+ // URL that hosts the web resource. |
const char* web_resource_server_; |
// Indicates whether we should append locale to the web resource server URL. |