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

Unified Diff: content/renderer/pepper/plugin_module.cc

Issue 451923002: Add a X-Requested-With header to URL requests for PPAPI Flash (only). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comment about -1. Created 6 years, 4 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/renderer/pepper/plugin_module.h ('k') | content/renderer/pepper/url_request_info_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/plugin_module.cc
diff --git a/content/renderer/pepper/plugin_module.cc b/content/renderer/pepper/plugin_module.cc
index 78b21427166e910f65554fffd3070fd15fb649a2..9a467940d4174930f646d301e576558574485167 100644
--- a/content/renderer/pepper/plugin_module.cc
+++ b/content/renderer/pepper/plugin_module.cc
@@ -395,6 +395,7 @@ void CreateHostForInProcessModule(RenderFrameImpl* render_frame,
// PluginModule ----------------------------------------------------------------
PluginModule::PluginModule(const std::string& name,
+ const std::string& version,
const base::FilePath& path,
const ppapi::PpapiPermissions& perms)
: callback_tracker_(new ppapi::CallbackTracker),
@@ -403,6 +404,7 @@ PluginModule::PluginModule(const std::string& name,
broker_(NULL),
library_(NULL),
name_(name),
+ version_(version),
path_(path),
permissions_(ppapi::PpapiPermissions::GetForCommandLine(perms.GetBits())),
reserve_instance_id_(NULL) {
@@ -495,7 +497,7 @@ PluginModule::CreateModuleForExternalPluginInstance() {
// Create a new module, but don't set the lifetime delegate. This isn't a
// plugin in the usual sense, so it isn't tracked by the browser.
scoped_refptr<PluginModule> external_plugin_module(
- new PluginModule(name_, path_, permissions_));
+ new PluginModule(name_, version_, path_, permissions_));
return external_plugin_module;
}
@@ -709,7 +711,7 @@ scoped_refptr<PluginModule> PluginModule::Create(
// AddLiveModule must be called before any early returns since the
// module's destructor will remove itself.
- module = new PluginModule(info->name, path, permissions);
+ module = new PluginModule(info->name, info->version, path, permissions);
PepperPluginRegistry::GetInstance()->AddLiveModule(path, module.get());
if (!module->CreateOutOfProcessModule(render_frame,
« no previous file with comments | « content/renderer/pepper/plugin_module.h ('k') | content/renderer/pepper/url_request_info_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698