summaryrefslogtreecommitdiffstats
path: root/content/browser/ppapi_plugin_process_host.cc
diff options
context:
space:
mode:
authoryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-22 08:30:33 +0000
committeryzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-22 08:30:33 +0000
commit029bd94e73652b6327fd77a65ec619ffdb1f325b (patch)
treee1baa98d23524dcae39257bc47abae20b2952e3e /content/browser/ppapi_plugin_process_host.cc
parent1a843b8f84f781c1079e36de77fb986fb7a2c569 (diff)
downloadchromium_src-029bd94e73652b6327fd77a65ec619ffdb1f325b.zip
chromium_src-029bd94e73652b6327fd77a65ec619ffdb1f325b.tar.gz
chromium_src-029bd94e73652b6327fd77a65ec619ffdb1f325b.tar.bz2
Add two new debug URLs for Pepper Flash:
- chrome://ppapiflashcrash - chrome://ppapiflashhang TEST=none BUG=169915 Review URL: https://chromiumcodereview.appspot.com/11883026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177983 0039d316-1c4b-4281-b951-d872f2087c98
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);
}