Chromium Code Reviews| 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 |