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

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

Issue 10941042: Browser plugin: Implement loadStart and loadAbort events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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/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 575e7908f633127e543d3ce643a7f9e6e60f5c96..1f878e98584b0bc431aa32548bc0647dd3e44b20 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -267,6 +267,18 @@ void BrowserPluginGuest::SetCursor(const WebCursor& cursor) {
cursor_ = cursor;
}
+void BrowserPluginGuest::DidStartProvisionalLoadForFrame(
+ int64 frame_id,
+ bool is_main_frame,
+ const GURL& validated_url,
+ bool is_error_page,
+ RenderViewHost* render_view_host) {
+ // Inform the embedder of the loadStart.
+ SendMessageToEmbedder(
+ new BrowserPluginMsg_LoadStart(instance_id(),
+ validated_url,
+ is_main_frame));
+}
void BrowserPluginGuest::DidCommitProvisionalLoadForFrame(
int64 frame_id,
bool is_main_frame,

Powered by Google App Engine
This is Rietveld 408576698