summaryrefslogtreecommitdiffstats
path: root/content/browser/ppapi_plugin_process_host.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/ppapi_plugin_process_host.cc')
-rw-r--r--content/browser/ppapi_plugin_process_host.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index 0947a0e..e279b99 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -137,6 +137,16 @@ void PpapiPluginProcessHost::DidDeleteOutOfProcessInstance(
// That's OK, we can just ignore this message.
}
+// static
+void PpapiPluginProcessHost::FindByName(
+ const string16& name,
+ std::vector<PpapiPluginProcessHost*>* hosts) {
+ for (PpapiPluginProcessHostIterator iter; !iter.Done(); ++iter) {
+ if (iter->process_.get() && iter->process_->GetData().name == name)
+ hosts->push_back(*iter);
+ }
+}
+
bool PpapiPluginProcessHost::Send(IPC::Message* message) {
return process_->Send(message);
}