Index: content/public/browser/resource_dispatcher_host_delegate.h |
diff --git a/content/public/browser/resource_dispatcher_host_delegate.h b/content/public/browser/resource_dispatcher_host_delegate.h |
index 890f1c7b728f77867de115c5d85df3a2ba7a7937..02b168684ad7580ed16c43d7795023f5365509bc 100644 |
--- a/content/public/browser/resource_dispatcher_host_delegate.h |
+++ b/content/public/browser/resource_dispatcher_host_delegate.h |
@@ -107,6 +107,22 @@ class CONTENT_EXPORT ResourceDispatcherHostDelegate { |
virtual bool ShouldForceDownloadResource( |
const GURL& url, const std::string& mime_type); |
+ // Returns true and sets security origin if a Stream should be created for |
+ // the resource. |
+ virtual bool ShouldCreateStream(content::ResourceContext* resource_context, |
+ const GURL& url, |
+ const std::string& mime_type, |
+ GURL* security_origin); |
+ |
+ // Informs the delegate that a stream was created. |
+ virtual void OnStreamCreated( |
+ content::ResourceContext* resource_context, |
+ int render_process_id, |
+ int render_view_id, |
+ const GURL& stream_url, |
+ const std::string& mime_type, |
+ const GURL& original_url); |
+ |
// Informs the delegate that a response has started. |
virtual void OnResponseStarted( |
net::URLRequest* request, |