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

Unified Diff: chrome/browser/web_resource/resource_request_allowed_notifier.h

Issue 739173002: Remove dependencies of ResourceRequestAllowedNotifier on chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and cleanup Created 6 years, 1 month 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
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.

Powered by Google App Engine
This is Rietveld 408576698