OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; | 49 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; |
50 | 50 |
51 // IPC::Sender | 51 // IPC::Sender |
52 virtual bool Send(IPC::Message* msg) OVERRIDE; | 52 virtual bool Send(IPC::Message* msg) OVERRIDE; |
53 | 53 |
54 // IPC::Listener | 54 // IPC::Listener |
55 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 55 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
56 | 56 |
57 void Init(); | 57 void Init(); |
58 int routing_id() const { return routing_id_; } | 58 int routing_id() const { return routing_id_; } |
59 void OnCreateChildFrame(int new_frame_routing_id, | 59 void OnCreateChildFrame(int new_routing_id, |
60 int64 parent_frame_id, | |
61 int64 frame_id, | |
62 const std::string& frame_name); | 60 const std::string& frame_name); |
63 | 61 |
64 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 62 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
65 RenderFrameHostDelegate* delegate() { return delegate_; } | 63 RenderFrameHostDelegate* delegate() { return delegate_; } |
66 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 64 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
67 | 65 |
68 // This function is called when this is a swapped out RenderFrameHost that | 66 // This function is called when this is a swapped out RenderFrameHost that |
69 // lives in the same process as the parent frame. The | 67 // lives in the same process as the parent frame. The |
70 // |cross_process_frame_connector| allows the non-swapped-out | 68 // |cross_process_frame_connector| allows the non-swapped-out |
71 // RenderFrameHost for a frame to communicate with the parent process | 69 // RenderFrameHost for a frame to communicate with the parent process |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 FrameTree* frame_tree, | 115 FrameTree* frame_tree, |
118 FrameTreeNode* frame_tree_node, | 116 FrameTreeNode* frame_tree_node, |
119 int routing_id, | 117 int routing_id, |
120 bool is_swapped_out); | 118 bool is_swapped_out); |
121 | 119 |
122 private: | 120 private: |
123 friend class TestRenderFrameHost; | 121 friend class TestRenderFrameHost; |
124 friend class TestRenderViewHost; | 122 friend class TestRenderViewHost; |
125 | 123 |
126 // IPC Message handlers. | 124 // IPC Message handlers. |
127 void OnDetach(int64 parent_frame_id, int64 frame_id); | 125 void OnDetach(); |
128 void OnDidStartProvisionalLoadForFrame(int64 frame_id, | 126 void OnDidStartProvisionalLoadForFrame(int64 frame_id, |
129 int64 parent_frame_id, | 127 int64 parent_frame_id, |
130 bool main_frame, | 128 bool main_frame, |
131 const GURL& url); | 129 const GURL& url); |
132 void OnDidFailProvisionalLoadWithError( | 130 void OnDidFailProvisionalLoadWithError( |
133 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params); | 131 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params); |
134 void OnDidFailLoadWithError( | 132 void OnDidFailLoadWithError( |
135 int64 frame_id, | 133 int64 frame_id, |
136 const GURL& url, | 134 const GURL& url, |
137 bool is_main_frame, | 135 bool is_main_frame, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 180 |
183 int routing_id_; | 181 int routing_id_; |
184 bool is_swapped_out_; | 182 bool is_swapped_out_; |
185 | 183 |
186 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 184 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
187 }; | 185 }; |
188 | 186 |
189 } // namespace content | 187 } // namespace content |
190 | 188 |
191 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 189 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |