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

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

Issue 10917225: Browser Plugin: Reload and Stop operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated Created 8 years, 3 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 44d452cc8eb6ea7b12c71c5d5df5b01e37781845..65b3ebf8e78a12addac6ec53292df61feea0b81c 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -149,6 +149,27 @@ void BrowserPlugin::RemoveEventListeners() {
event_listener_map_.clear();
}
+void BrowserPlugin::Stop() {
+ if (src_.empty())
lazyboy 2012/09/13 19:14:15 if (!navigate_src_sent_) instead after my recent p
Fady Samuel 2012/09/19 14:38:09 Done.
+ return;
+ BrowserPluginManager::Get()->Send(
+ new BrowserPluginHostMsg_Stop(render_view_->GetRoutingID(),
+ instance_id_));
+}
+
+void BrowserPlugin::Reload() {
+ if (src_.empty())
lazyboy 2012/09/13 19:14:15 Same here, if (!navigation_src_sent_).
Fady Samuel 2012/09/19 14:38:09 Done.
+ return;
+ // Renavigate to the same URL if the guest has crashed.
+ if (guest_crashed_) {
+ SetSrcAttribute(src_);
+ return;
+ }
+ BrowserPluginManager::Get()->Send(
+ new BrowserPluginHostMsg_Reload(render_view_->GetRoutingID(),
+ instance_id_));
+}
+
void BrowserPlugin::UpdateRect(
int message_id,
const BrowserPluginMsg_UpdateRect_Params& params) {

Powered by Google App Engine
This is Rietveld 408576698