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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host.h

Issue 501082: Implement delaying resource requests until privacy blacklists are ready. (Closed)
Patch Set: don't get stuck on errors Created 10 years, 12 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
Index: chrome/browser/renderer_host/resource_dispatcher_host.h
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.h b/chrome/browser/renderer_host/resource_dispatcher_host.h
index 3dba76761fec295fd10f3f197fddfe0b6cd251d6..da043eb17dab7304df3842b7b2da2c588effc83e 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host.h
+++ b/chrome/browser/renderer_host/resource_dispatcher_host.h
@@ -22,12 +22,13 @@
#include "base/process.h"
#include "base/timer.h"
#include "chrome/common/child_process_info.h"
-#include "chrome/browser/privacy_blacklist/blocked_response.h"
+#include "chrome/browser/privacy_blacklist/blacklist_interceptor.h"
#include "chrome/browser/renderer_host/resource_queue.h"
#include "ipc/ipc_message.h"
#include "net/url_request/url_request.h"
#include "webkit/glue/resource_type.h"
+class BlacklistListener;
class CrossSiteResourceHandler;
class DownloadFileManager;
class DownloadRequestManager;
@@ -409,6 +410,13 @@ class ResourceDispatcherHost : public URLRequest::Delegate {
// We own the save file manager.
scoped_refptr<SaveFileManager> save_file_manager_;
+ // Handles requests blocked by privacy blacklists.
+ BlacklistInterceptor blacklist_interceptor_;
+
+ // Makes sure that each request is reliably checked against the privacy
+ // blacklist.
+ scoped_refptr<BlacklistListener> blacklist_listener_;
+
scoped_refptr<UserScriptListener> user_script_listener_;
scoped_refptr<SafeBrowsingService> safe_browsing_;
@@ -459,9 +467,6 @@ class ResourceDispatcherHost : public URLRequest::Delegate {
// to the source of the message.
Receiver* receiver_;
- // Keeps track of elements blocked by the Privacy Blacklist.
- chrome::BlockedResponse blocked_;
-
DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
};
« no previous file with comments | « chrome/browser/privacy_blacklist/blocked_response.cc ('k') | chrome/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698