Index: chrome/browser/web_resource/resource_request_allowed_notifier.h |
diff --git a/chrome/browser/web_resource/resource_request_allowed_notifier.h b/chrome/browser/web_resource/resource_request_allowed_notifier.h |
index d37bfff363967d10c81b15326b7d482ca7740aca..c0d48fce710567b686cb5313f374bc1584f2b514 100644 |
--- a/chrome/browser/web_resource/resource_request_allowed_notifier.h |
+++ b/chrome/browser/web_resource/resource_request_allowed_notifier.h |
@@ -8,6 +8,8 @@ |
#include "chrome/browser/web_resource/eula_accepted_notifier.h" |
#include "net/base/network_change_notifier.h" |
+class PrefService; |
+ |
// This class informs an interested observer when resource requests over the |
// network are permitted. |
// |
@@ -46,7 +48,7 @@ class ResourceRequestAllowedNotifier |
DISALLOWED_COMMAND_LINE_DISABLED, |
}; |
- ResourceRequestAllowedNotifier(); |
+ explicit ResourceRequestAllowedNotifier(PrefService* local_state); |
~ResourceRequestAllowedNotifier() override; |
// Sets |observer| as the service to be notified by this instance, and |
@@ -87,6 +89,9 @@ class ResourceRequestAllowedNotifier |
void OnConnectionTypeChanged( |
net::NetworkChangeNotifier::ConnectionType type) override; |
+ // The local state this class is observing. |
+ PrefService* local_state_; |
+ |
// Tracks whether or not the observer/service depending on this class actually |
// requested permission to make a request or not. If it did not, then this |
// class should not notify it even if the criteria is met. |