OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/browser/frame_host/render_frame_host_impl.h" | 9 #include "content/browser/frame_host/render_frame_host_impl.h" |
10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 void set_render_frame_proxy_created(bool created) { | 109 void set_render_frame_proxy_created(bool created) { |
110 render_frame_proxy_created_ = created; | 110 render_frame_proxy_created_ = created; |
111 } | 111 } |
112 | 112 |
113 // Returns if the RenderFrameProxy for this host is alive. | 113 // Returns if the RenderFrameProxy for this host is alive. |
114 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } | 114 bool is_render_frame_proxy_live() { return render_frame_proxy_created_; } |
115 | 115 |
116 private: | 116 private: |
117 // IPC Message handlers. | 117 // IPC Message handlers. |
| 118 void OnDetach(); |
118 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); | 119 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); |
119 | 120 |
120 // This RenderFrameProxyHost's routing id. | 121 // This RenderFrameProxyHost's routing id. |
121 int routing_id_; | 122 int routing_id_; |
122 | 123 |
123 // The SiteInstance this proxy is associated with. | 124 // The SiteInstance this proxy is associated with. |
124 scoped_refptr<SiteInstance> site_instance_; | 125 scoped_refptr<SiteInstance> site_instance_; |
125 | 126 |
126 // The renderer process this RenderFrameHostProxy is associated with. It is | 127 // The renderer process this RenderFrameHostProxy is associated with. It is |
127 // equivalent to the result of site_instance_->GetProcess(), but that | 128 // equivalent to the result of site_instance_->GetProcess(), but that |
(...skipping 16 matching lines...) Expand all Loading... |
144 // TODO(nasko): This can be removed once we don't have a swapped out state on | 145 // TODO(nasko): This can be removed once we don't have a swapped out state on |
145 // RenderFrameHosts. See https://crbug.com/357747. | 146 // RenderFrameHosts. See https://crbug.com/357747. |
146 scoped_ptr<RenderFrameHostImpl> render_frame_host_; | 147 scoped_ptr<RenderFrameHostImpl> render_frame_host_; |
147 | 148 |
148 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); | 149 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxyHost); |
149 }; | 150 }; |
150 | 151 |
151 } // namespace | 152 } // namespace |
152 | 153 |
153 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ | 154 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_PROXY_HOST_H_ |
OLD | NEW |