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

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

Issue 55049: Add the ability to specify a default MIME type when loading a resource. We'l... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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/resource_dispatcher_host.h
===================================================================
--- chrome/browser/renderer_host/resource_dispatcher_host.h (revision 12710)
+++ chrome/browser/renderer_host/resource_dispatcher_host.h (working copy)
@@ -79,6 +79,7 @@
int request_id,
std::string frame_origin,
std::string main_frame_origin,
+ std::string default_mime_type,
ResourceType::Type resource_type,
uint64 upload_size)
: resource_handler(handler),
@@ -93,6 +94,7 @@
pause_count(0),
frame_origin(frame_origin),
main_frame_origin(main_frame_origin),
+ default_mime_type(default_mime_type),
resource_type(resource_type),
filter_policy(FilterPolicy::DONT_FILTER),
last_load_state(net::LOAD_STATE_IDLE),
@@ -141,6 +143,10 @@
// this request.
std::string main_frame_origin;
+ // The MIME type to use if this request lacks a Content-Type header. If
wtc 2009/03/28 00:45:35 Nit: "response header", to avoid confusion with a
+ // |default_mime_type| is "", then use the default sniffing algorith.
wtc 2009/03/28 00:45:35 Typo: algorith
+ std::string default_mime_type;
+
ResourceType::Type resource_type;
// Whether the content for this request should be filtered (on the renderer

Powered by Google App Engine
This is Rietveld 408576698