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

Unified Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 11048023: Browser Plugin: Implement terminate() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged with ToT Created 8 years, 2 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/renderer/browser_plugin/browser_plugin.cc
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index 712c41a93f060738323e498f6fa612bbd476bcd5..5c4f0e7fc27e7a3475ed2ea0c66f8a01daba329e 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -239,6 +239,14 @@ void BrowserPlugin::Go(int relative_index) {
relative_index));
}
+void BrowserPlugin::TerminateGuest() {
+ if (!navigate_src_sent_)
+ return;
+ BrowserPluginManager::Get()->Send(
+ new BrowserPluginHostMsg_TerminateGuest(render_view_->GetRoutingID(),
+ instance_id_));
+}
+
void BrowserPlugin::Stop() {
if (!navigate_src_sent_)
return;
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.h ('k') | content/renderer/browser_plugin/browser_plugin_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698