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

Unified Diff: content/public/browser/resource_dispatcher_host_delegate.cc

Issue 12645004: Add Resource Handler for creating Streams to forward to extensions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code review fixes Created 7 years, 9 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/public/browser/resource_dispatcher_host_delegate.cc
diff --git a/content/public/browser/resource_dispatcher_host_delegate.cc b/content/public/browser/resource_dispatcher_host_delegate.cc
index ccca655c9fba4aa98a3bd81fe51b1bcd4a1f405e..8512bbfd27e46494bc85cd69ea3f5d3964699408 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.cc
+++ b/content/public/browser/resource_dispatcher_host_delegate.cc
@@ -70,6 +70,25 @@ bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
return false;
}
+bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
+ content::ResourceContext* resource_context,
+ const GURL& url,
+ const std::string& mime_type,
+ GURL* security_origin,
+ std::string* target_id) {
+ return false;
+}
+
+void ResourceDispatcherHostDelegate::OnStreamCreated(
+ content::ResourceContext* resource_context,
+ int render_process_id,
+ int render_view_id,
+ const std::string& target_id,
+ const GURL& stream_url,
+ const std::string& mime_type,
+ const GURL& original_url) {
+}
+
void ResourceDispatcherHostDelegate::OnResponseStarted(
net::URLRequest* request,
ResourceContext* resource_context,

Powered by Google App Engine
This is Rietveld 408576698