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

Issue 55049: Add the ability to specify a default MIME type when loading a resource. We'l... (Closed)

Created:
11 years, 9 months ago by abarth-chromium
Modified:
9 years, 7 months ago
Reviewers:
wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12739

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -2 lines) Patch
M chrome/browser/renderer_host/buffered_resource_handler.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.h View 3 chunks +6 lines, -0 lines 2 comments Download
M chrome/browser/renderer_host/resource_dispatcher_host.cc View 3 chunks +3 lines, -0 lines 3 comments Download
M chrome/common/render_messages.h View 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/resource_dispatcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/resource_dispatcher.cc View 5 chunks +5 lines, -0 lines 0 comments Download
M chrome/plugin/chrome_plugin_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/renderer_glue.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/glue/resource_handle_impl.cc View 1 chunk +3 lines, -0 lines 2 comments Download
M webkit/glue/resource_loader_bridge.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
abarth-chromium
Here is the chrome-side part of the text/css fix. Once we get the upstream patch ...
11 years, 9 months ago (2009-03-28 00:14:55 UTC) #1
wtc
LGTM. Thanks a lot! http://codereview.chromium.org/55049/diff/1/5 File chrome/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/55049/diff/1/5#newcode398 Line 398: request_data.default_mime_type, Just curious: how ...
11 years, 9 months ago (2009-03-28 00:45:35 UTC) #2
abarth-chromium
http://codereview.chromium.org/55049/diff/1/5 File chrome/browser/renderer_host/resource_dispatcher_host.cc (right): http://codereview.chromium.org/55049/diff/1/5#newcode398 Line 398: request_data.default_mime_type, In this case the decision is easy ...
11 years, 9 months ago (2009-03-28 07:10:45 UTC) #3
wtc
11 years, 8 months ago (2009-03-30 18:29:46 UTC) #4
LGTM.

http://codereview.chromium.org/55049/diff/1/5
File chrome/browser/renderer_host/resource_dispatcher_host.cc (right):

http://codereview.chromium.org/55049/diff/1/5#newcode398
Line 398: request_data.default_mime_type,
On 2009/03/28 07:10:45, abarth wrote:
> In this case the decision is easy because URLRequest doesn't know anything
about
> content sniffing.  That's all handled at the ResourceDispatcherHost layer.

Thanks for the answer.  I also figured this out on my
way home last Friday -- if it'll be used or set by
URLRequest, add it as a member, otherwise it's "user data"
and we should add it to ExtraRequestInfo.

Powered by Google App Engine
This is Rietveld 408576698