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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 647853002: Create a proprietary scheme for loading web-accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use https://codereview.chromium.org/730203007/ to permit only images and CSS on resource protocol 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: 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 d36968b9e280ca09ff60a73eb6bde125a9bd8b2c..dc13ff16f41d00e2f648654ca783b3057661a0a7 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -20,6 +20,7 @@
#include "content/browser/fileapi/chrome_blob_storage_context.h"
#include "content/browser/loader/resource_request_info_impl.h"
#include "content/browser/resource_context_impl.h"
+#include "content/browser/resource_protocol.h"
#include "content/browser/service_worker/service_worker_request_handler.h"
#include "content/browser/storage_partition_impl.h"
#include "content/browser/streams/stream.h"
@@ -432,6 +433,9 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
linked_ptr<net::URLRequestJobFactory::ProtocolHandler>(
CreateDevToolsProtocolHandler(browser_context_->GetResourceContext(),
browser_context_->IsOffTheRecord()));
+ protocol_handlers[kResourceScheme] =
+ linked_ptr<net::URLRequestJobFactory::ProtocolHandler>(
+ new ResourceProtocolHandler);
URLRequestInterceptorScopedVector request_interceptors;
request_interceptors.push_back(

Powered by Google App Engine
This is Rietveld 408576698