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

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: Add ability to send unserialized intent data from browser process. 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 7feb15421a8356d25824cc336f24b0a3066f565f..0bd124c370de0014c71cde7cbe3cdaeeb92011ef 100644
--- a/content/browser/renderer_host/buffered_resource_handler.cc
+++ b/content/browser/renderer_host/buffered_resource_handler.cc
@@ -183,6 +183,7 @@ bool BufferedResourceHandler::DelayResponse() {
response_->mime_type.assign(mime_type);
}
+ /*
darin (slow to review) 2012/03/10 01:02:14 are these comments intended?
Greg Billock 2012/03/13 17:56:10 They're needed to enable feed content type handlin
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
@@ -195,6 +196,7 @@ bool BufferedResourceHandler::DelayResponse() {
mime_type.assign("text/plain");
response_->mime_type.assign(mime_type);
}
+ */
if (!not_modified_status && ShouldWaitForPlugins()) {
wait_for_plugins_ = true;
@@ -360,6 +362,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" ||
+ type == "application/atom+xml") {
+ return true;
+ }
+
// MIME type checking.
if (net::IsSupportedMimeType(type))
return false;

Powered by Google App Engine
This is Rietveld 408576698