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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 10917225: Browser Plugin: Reload and Stop operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments + merged with ToT/latest patch 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/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index ada9dfbaa0f2c1dbacfe1307fe8682ac238148c0..3b9bff4f1f134acc580921f3517faa41c7a34e63 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -225,6 +225,15 @@ void BrowserPluginGuest::HandleInputEventAck(RenderViewHost* render_view_host,
SendMessageToEmbedder(reply_message);
}
+void BrowserPluginGuest::Stop() {
+ web_contents()->Stop();
+}
+
+void BrowserPluginGuest::Reload() {
+ fprintf(stderr, ">>>%s\n", __PRETTY_FUNCTION__);
lazyboy 2012/09/19 15:06:06 Remove.
Fady Samuel 2012/09/19 15:50:56 Done.
+ web_contents()->GetController().Reload(false);
+}
+
void BrowserPluginGuest::SetFocus(bool focused) {
RenderViewHost* render_view_host = web_contents()->GetRenderViewHost();
render_view_host->Send(

Powered by Google App Engine
This is Rietveld 408576698