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

Unified Diff: content/child/npapi/webplugin_delegate_impl.cc

Issue 139303020: Merge 245600 "Give QuickTime the plugin stream data in writeable..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/webplugin_delegate_impl.cc
===================================================================
--- content/child/npapi/webplugin_delegate_impl.cc (revision 245614)
+++ content/child/npapi/webplugin_delegate_impl.cc (working copy)
@@ -11,6 +11,7 @@
#include "base/message_loop/message_loop.h"
#include "base/process/process_handle.h"
#include "base/strings/string_util.h"
+#include "base/strings/utf_string_conversions.h"
#include "content/child/npapi/plugin_instance.h"
#include "content/child/npapi/plugin_lib.h"
#include "content/child/npapi/plugin_stream_url.h"
@@ -51,6 +52,9 @@
const std::vector<std::string>& arg_names,
const std::vector<std::string>& arg_values,
bool load_manually) {
+ if (instance_->mime_type() == "video/quicktime")
+ quirks_ |= PLUGIN_QUIRK_COPY_STREAM_DATA;
+
instance_->set_web_plugin(plugin_);
if (quirks_ & PLUGIN_QUIRK_DONT_ALLOW_MULTIPLE_INSTANCES) {
PluginLib* plugin_lib = instance()->plugin_lib();
@@ -316,10 +320,11 @@
PluginStreamUrl* plugin_stream = instance()->CreateStream(
resource_id, url, std::string(), notify_id);
+ bool copy_stream_data = !!(quirks_ & PLUGIN_QUIRK_COPY_STREAM_DATA);
plugin_stream->SetPluginURLFetcher(new PluginURLFetcher(
plugin_stream, url, first_party_for_cookies, method, buf, len,
referrer, notify_redirects, is_plugin_src_load, origin_pid,
- render_view_id, resource_id));
+ render_view_id, resource_id, copy_stream_data));
}
} // namespace content
« no previous file with comments | « content/child/npapi/webplugin_delegate_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698