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 <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 namespace content { | 32 namespace content { |
33 | 33 |
34 class CrossProcessFrameConnector; | 34 class CrossProcessFrameConnector; |
35 class CrossSiteTransferringRequest; | 35 class CrossSiteTransferringRequest; |
36 class FrameTree; | 36 class FrameTree; |
37 class FrameTreeNode; | 37 class FrameTreeNode; |
38 class RenderFrameHostDelegate; | 38 class RenderFrameHostDelegate; |
39 class RenderFrameProxyHost; | 39 class RenderFrameProxyHost; |
40 class RenderProcessHost; | 40 class RenderProcessHost; |
41 class RenderViewHostImpl; | 41 class RenderViewHostImpl; |
| 42 class RenderWidgetHostImpl; |
42 struct ContextMenuParams; | 43 struct ContextMenuParams; |
43 struct GlobalRequestID; | 44 struct GlobalRequestID; |
44 struct Referrer; | 45 struct Referrer; |
45 struct ShowDesktopNotificationHostMsgParams; | 46 struct ShowDesktopNotificationHostMsgParams; |
46 | 47 |
47 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost { | 48 class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost { |
48 public: | 49 public: |
49 static RenderFrameHostImpl* FromID(int process_id, int routing_id); | 50 static RenderFrameHostImpl* FromID(int process_id, int routing_id); |
50 | 51 |
51 virtual ~RenderFrameHostImpl(); | 52 virtual ~RenderFrameHostImpl(); |
(...skipping 21 matching lines...) Expand all Loading... |
73 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 74 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
74 | 75 |
75 void Init(); | 76 void Init(); |
76 int routing_id() const { return routing_id_; } | 77 int routing_id() const { return routing_id_; } |
77 void OnCreateChildFrame(int new_routing_id, | 78 void OnCreateChildFrame(int new_routing_id, |
78 const std::string& frame_name); | 79 const std::string& frame_name); |
79 | 80 |
80 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 81 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
81 RenderFrameHostDelegate* delegate() { return delegate_; } | 82 RenderFrameHostDelegate* delegate() { return delegate_; } |
82 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 83 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
| 84 // TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in |
| 85 // the future, so update this accessor to return the right pointer. |
| 86 RenderWidgetHostImpl* GetRenderWidgetHost(); |
83 | 87 |
84 // This function is called when this is a swapped out RenderFrameHost that | 88 // This function is called when this is a swapped out RenderFrameHost that |
85 // lives in the same process as the parent frame. The | 89 // lives in the same process as the parent frame. The |
86 // |cross_process_frame_connector| allows the non-swapped-out | 90 // |cross_process_frame_connector| allows the non-swapped-out |
87 // RenderFrameHost for a frame to communicate with the parent process | 91 // RenderFrameHost for a frame to communicate with the parent process |
88 // so that it may composite drawing data. | 92 // so that it may composite drawing data. |
89 // | 93 // |
90 // Ownership is not transfered. | 94 // Ownership is not transfered. |
91 void set_cross_process_frame_connector( | 95 void set_cross_process_frame_connector( |
92 CrossProcessFrameConnector* cross_process_frame_connector) { | 96 CrossProcessFrameConnector* cross_process_frame_connector) { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 base::TimeTicks send_before_unload_start_time_; | 291 base::TimeTicks send_before_unload_start_time_; |
288 | 292 |
289 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 293 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
290 | 294 |
291 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 295 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
292 }; | 296 }; |
293 | 297 |
294 } // namespace content | 298 } // namespace content |
295 | 299 |
296 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 300 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |