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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 263513004: Forward MIME types to BrowserPlugin when a viewer is specified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review fixes Created 6 years, 7 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/browser/loader/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index 185fb0b075028941d540d9aa93df6314f71b1fa4..ce2e570a4299cd36d120319627b8fbef3acf1d54 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -58,6 +58,7 @@ class ResourceDispatcherHostDelegate;
class ResourceMessageDelegate;
class ResourceMessageFilter;
class ResourceRequestInfoImpl;
+class StreamResourceHandler;
class SaveFileManager;
class WebContentsImpl;
struct DownloadSaveInfo;
@@ -210,10 +211,13 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
const DownloadUrlParameters::OnStartedCallback& started_cb);
// Must be called after the ResourceRequestInfo has been created
- // and associated with the request.
+ // and associated with the request. If |payload| is set to a non-empty value,
+ // the value should be sent to the old resource handler instead of cancelling
mmenke 2014/05/30 15:24:32 nit: Should -> will.
+ // it.
mmenke 2014/05/30 15:24:32 nit: Maybe add "except on HTTP errors"?
Zachary Kuznia 2014/05/30 17:47:22 Done.
Zachary Kuznia 2014/05/30 17:47:22 Done.
scoped_ptr<ResourceHandler> MaybeInterceptAsStream(
net::URLRequest* request,
- ResourceResponse* response);
+ ResourceResponse* response,
+ std::string* payload);
void ClearSSLClientAuthHandlerForRequest(net::URLRequest* request);
« no previous file with comments | « content/browser/loader/buffered_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698