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

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

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
Index: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h
diff --git a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h
index e7842b867dc7950844a3f36f9c7768a5f25e4a39..fa8884fa2b402889059b427b531b643ce580720e 100644
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h
@@ -74,6 +74,18 @@ class ChromeResourceDispatcherHostDelegate
int route_id) OVERRIDE;
virtual bool ShouldForceDownloadResource(
const GURL& url, const std::string& mime_type) OVERRIDE;
+ virtual bool ShouldInterceptResourceAsStream(
+ content::ResourceContext* resource_context,
+ const GURL& url,
+ const std::string& mime_type,
+ GURL* security_origin,
+ std::string* target_id) OVERRIDE;
+ virtual void OnStreamCreated(
+ content::ResourceContext* resource_context,
+ int render_process_id,
+ int render_view_id,
+ const std::string& target_id,
+ scoped_ptr<content::StreamHandle> stream) OVERRIDE;
virtual void OnResponseStarted(
net::URLRequest* request,
content::ResourceContext* resource_context,

Powered by Google App Engine
This is Rietveld 408576698