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

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: Disable Stream Resource Throttle 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
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.h ('k') | content/public/browser/stream_handle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8208fd91b924ed971288d4330b51c1444094000d 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.cc
+++ b/content/public/browser/resource_dispatcher_host_delegate.cc
@@ -4,6 +4,8 @@
#include "content/public/browser/resource_dispatcher_host_delegate.h"
+#include "content/public/browser/stream_handle.h"
+
namespace content {
bool ResourceDispatcherHostDelegate::ShouldBeginRequest(
@@ -70,6 +72,23 @@ 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,
+ scoped_ptr<StreamHandle> stream) {
+}
+
void ResourceDispatcherHostDelegate::OnResponseStarted(
net::URLRequest* request,
ResourceContext* resource_context,
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.h ('k') | content/public/browser/stream_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698