Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / browser / frame_host / render_frame_proxy_host.h
index 0da55c7..2a34fc2 100644 (file)
@@ -55,6 +55,8 @@ class RenderFrameProxyHost
     : public IPC::Listener,
       public IPC::Sender {
  public:
+  static RenderFrameProxyHost* FromID(int process_id, int routing_id);
+
   RenderFrameProxyHost(SiteInstance* site_instance,
                        FrameTreeNode* frame_tree_node);
   virtual ~RenderFrameProxyHost();
@@ -75,6 +77,8 @@ class RenderFrameProxyHost
     return site_instance_.get();
   }
 
+  FrameTreeNode* frame_tree_node() const { return frame_tree_node_; };
+
   void SetChildRWHView(RenderWidgetHostView* view);
 
   // TODO(nasko): The following methods should be removed once we don't have a
@@ -100,6 +104,10 @@ class RenderFrameProxyHost
     return cross_process_frame_connector_.get();
   }
 
+  // Set the frame's opener to null in the renderer process in response to an
+  // action in another renderer process.
+  void DisownOpener();
+
  private:
   // This RenderFrameProxyHost's routing id.
   int routing_id_;