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

Unified Diff: content/browser/renderer_host/buffered_resource_handler.cc

Issue 9651020: Pass content-type resources to web intents. Goes through download, then invokes the p… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move dispatch logic client-side. Created 8 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: content/browser/renderer_host/buffered_resource_handler.cc
diff --git a/content/browser/renderer_host/buffered_resource_handler.cc b/content/browser/renderer_host/buffered_resource_handler.cc
index 3cfbbbab95f24c3ea06e0ef6bbe0c921a88d3d10..9fe88d7e2cafc035877a73ce89f2cdabc04673ff 100644
--- a/content/browser/renderer_host/buffered_resource_handler.cc
+++ b/content/browser/renderer_host/buffered_resource_handler.cc
@@ -184,6 +184,7 @@ bool BufferedResourceHandler::DelayResponse() {
response_->mime_type.assign(mime_type);
}
+ /*
jam 2012/03/16 21:36:26 ?
if (mime_type == "application/rss+xml" ||
mime_type == "application/atom+xml") {
// Sad face. The server told us that they wanted us to treat the response
@@ -196,6 +197,7 @@ bool BufferedResourceHandler::DelayResponse() {
mime_type.assign("text/plain");
response_->mime_type.assign(mime_type);
}
+ */
if (!not_modified_status && ShouldWaitForPlugins()) {
wait_for_plugins_ = true;
@@ -362,6 +364,12 @@ bool BufferedResourceHandler::ShouldDownload(bool* need_plugin_list) {
host_->delegate()->ShouldForceDownloadResource(request_->url(), type))
return true;
+ // mime type support currently says it supports feed types.
+ if (type == "application/rss+xml" ||
jam 2012/03/16 21:36:26 why is this code here? it's hard to understand thi
Greg Billock 2012/03/18 00:32:21 This is working around a hack in IsSupportedMimeTy
+ type == "application/atom+xml") {
+ return true;
+ }
+
// MIME type checking.
if (net::IsSupportedMimeType(type))
return false;

Powered by Google App Engine
This is Rietveld 408576698