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

Unified Diff: content/public/browser/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: 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
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/resource_dispatcher_host_delegate.cc » ('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.h
diff --git a/content/public/browser/resource_dispatcher_host_delegate.h b/content/public/browser/resource_dispatcher_host_delegate.h
index 890f1c7b728f77867de115c5d85df3a2ba7a7937..eff46f666d45a742d93a87f3b509f5734ed9a441 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.h
+++ b/content/public/browser/resource_dispatcher_host_delegate.h
@@ -107,6 +107,25 @@ class CONTENT_EXPORT ResourceDispatcherHostDelegate {
virtual bool ShouldForceDownloadResource(
const GURL& url, const std::string& mime_type);
+ // Returns true and sets |security_origin| and |target_id| if a Stream should
+ // be created for the resource.
darin (slow to review) 2013/03/16 17:23:51 please document the fact that OnStreamCreated will
Zachary Kuznia 2013/03/17 01:30:33 I expanded these comments to explain this behavior
+ virtual bool ShouldInterceptResourceAsStream(
+ content::ResourceContext* resource_context,
+ const GURL& url,
+ const std::string& mime_type,
+ GURL* security_origin,
+ std::string* target_id);
+
+ // Informs the delegate that a stream was created.
+ virtual void 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);
+
// Informs the delegate that a response has started.
virtual void OnResponseStarted(
net::URLRequest* request,
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698