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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 2739323003: DevTools protocol interception, blocking & modification of requests (Closed)
Patch Set: Add a comment Created 3 years, 7 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: content/browser/storage_partition_impl_map.cc
diff --git a/content/browser/storage_partition_impl_map.cc b/content/browser/storage_partition_impl_map.cc
index 4563fea015678f8632934f1e9a91462ec6898b7f..b7f3f5b5217ff653284074317fea7bd81e473379 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -26,6 +26,7 @@
#include "content/browser/appcache/chrome_appcache_service.h"
#include "content/browser/background_fetch/background_fetch_context.h"
#include "content/browser/blob_storage/chrome_blob_storage_context.h"
+#include "content/browser/devtools/devtools_url_request_interceptor.h"
#include "content/browser/fileapi/browser_file_system_helper.h"
#include "content/browser/loader/resource_request_info_impl.h"
#include "content/browser/resource_context_impl.h"
@@ -425,6 +426,8 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
browser_context_->GetResourceContext()));
URLRequestInterceptorScopedVector request_interceptors;
+ request_interceptors.push_back(
+ base::MakeUnique<DevToolsURLRequestInterceptor>(browser_context_));
request_interceptors.push_back(ServiceWorkerRequestHandler::CreateInterceptor(
browser_context_->GetResourceContext()));
if (ForeignFetchRequestHandler::IsForeignFetchEnabled()) {

Powered by Google App Engine
This is Rietveld 408576698