summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/resource_dispatcher_host.h
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-28 07:13:19 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-28 07:13:19 +0000
commite53db4462779be3af76c63404314afe7a1464657 (patch)
tree9c90fa8655cf542bdc35a4819fea2327804a84ef /chrome/browser/renderer_host/resource_dispatcher_host.h
parent06294933c1ae46a2c6aa22bb0b6eac48582330f6 (diff)
downloadchromium_src-e53db4462779be3af76c63404314afe7a1464657.zip
chromium_src-e53db4462779be3af76c63404314afe7a1464657.tar.gz
chromium_src-e53db4462779be3af76c63404314afe7a1464657.tar.bz2
Add the ability to specify a default MIME type when loading a resource. We'll need this to correctly load stylesheets that lack a Content-Type header in standards mode.
We're waiting on https://bugs.webkit.org/show_bug.cgi?id=24904 upstream before this works fully. This change, as it stands, is a no-op. R=wtc BUG=7448 Review URL: http://codereview.chromium.org/55049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/resource_dispatcher_host.h')
-rw-r--r--chrome/browser/renderer_host/resource_dispatcher_host.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.h b/chrome/browser/renderer_host/resource_dispatcher_host.h
index 052c157..07c532c 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host.h
+++ b/chrome/browser/renderer_host/resource_dispatcher_host.h
@@ -79,6 +79,7 @@ class ResourceDispatcherHost : public URLRequest::Delegate {
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 @@ class ResourceDispatcherHost : public URLRequest::Delegate {
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,11 @@ class ResourceDispatcherHost : public URLRequest::Delegate {
// this request.
std::string main_frame_origin;
+ // The MIME type to use if this request lacks a Content-Type response
+ // header. If |default_mime_type| is "", then use the default sniffing
+ // algorithm.
+ std::string default_mime_type;
+
ResourceType::Type resource_type;
// Whether the content for this request should be filtered (on the renderer