Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / browser / frame_host / render_frame_host_delegate.h
index b364ec5..b6ebfa9 100644 (file)
@@ -14,6 +14,7 @@ class Message;
 namespace content {
 class RenderFrameHost;
 class WebContents;
+struct ContextMenuParams;
 
 // An interface implemented by an object interested in knowing about the state
 // of the RenderFrameHost.
@@ -29,8 +30,21 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
   // Informs the delegate whenever a RenderFrameHost is deleted.
   virtual void RenderFrameDeleted(RenderFrameHost* render_frame_host) {}
 
+  // The top-level RenderFrame began loading a new page. This corresponds to
+  // Blink's notion of the throbber starting.
+  virtual void DidStartLoading(RenderFrameHost* render_frame_host) {}
+
+  // The top-level RenderFrame stopped loading a page. This corresponds to
+  // Blink's notion of the throbber stopping.
+  virtual void DidStopLoading(RenderFrameHost* render_frame_host) {}
+
   // Notification that a worker process has crashed.
-  virtual void WorkerCrashed() {}
+  virtual void WorkerCrashed(RenderFrameHost* render_frame_host) {}
+
+  // A context menu should be shown, to be built using the context information
+  // provided in the supplied params.
+  virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
+                               const ContextMenuParams& params) {}
 
   // Return this object cast to a WebContents, if it is one. If the object is
   // not a WebContents, returns NULL.