Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 241223002: Start using RenderFrameProxyHost objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Commits the right URL now. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const base::string16& javascript, 66 const base::string16& javascript,
67 const JavaScriptResultCallback& callback) OVERRIDE; 67 const JavaScriptResultCallback& callback) OVERRIDE;
68 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; 68 virtual RenderViewHost* GetRenderViewHost() OVERRIDE;
69 69
70 // IPC::Sender 70 // IPC::Sender
71 virtual bool Send(IPC::Message* msg) OVERRIDE; 71 virtual bool Send(IPC::Message* msg) OVERRIDE;
72 72
73 // IPC::Listener 73 // IPC::Listener
74 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 74 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
75 75
76 bool CreateRenderFrame(int parent_routing_id);
ncarter (slow) 2014/06/25 01:07:56 A comment for this function that helps clarify exa
77 bool IsRenderFrameLive();
76 void Init(); 78 void Init();
77 int routing_id() const { return routing_id_; } 79 int routing_id() const { return routing_id_; }
78 void OnCreateChildFrame(int new_routing_id, 80 void OnCreateChildFrame(int new_routing_id,
79 const std::string& frame_name); 81 const std::string& frame_name);
80 82
81 RenderViewHostImpl* render_view_host() { return render_view_host_; } 83 RenderViewHostImpl* render_view_host() { return render_view_host_; }
82 RenderFrameHostDelegate* delegate() { return delegate_; } 84 RenderFrameHostDelegate* delegate() { return delegate_; }
83 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } 85 FrameTreeNode* frame_tree_node() { return frame_tree_node_; }
84 // TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in 86 // TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in
85 // the future, so update this accessor to return the right pointer. 87 // the future, so update this accessor to return the right pointer.
86 RenderWidgetHostImpl* GetRenderWidgetHost(); 88 RenderWidgetHostImpl* GetRenderWidgetHost();
89 bool has_received_swap_out_ack() { return has_received_swap_out_ack_; }
87 90
88 // This function is called when this is a swapped out RenderFrameHost that 91 // This function is called when this is a swapped out RenderFrameHost that
89 // lives in the same process as the parent frame. The 92 // lives in the same process as the parent frame. The
90 // |cross_process_frame_connector| allows the non-swapped-out 93 // |cross_process_frame_connector| allows the non-swapped-out
91 // RenderFrameHost for a frame to communicate with the parent process 94 // RenderFrameHost for a frame to communicate with the parent process
92 // so that it may composite drawing data. 95 // so that it may composite drawing data.
93 // 96 //
94 // Ownership is not transfered. 97 // Ownership is not transfered.
95 void set_cross_process_frame_connector( 98 void set_cross_process_frame_connector(
96 CrossProcessFrameConnector* cross_process_frame_connector) { 99 CrossProcessFrameConnector* cross_process_frame_connector) {
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 294
292 // The mapping of pending JavaScript calls created by 295 // The mapping of pending JavaScript calls created by
293 // ExecuteJavaScript and their corresponding callbacks. 296 // ExecuteJavaScript and their corresponding callbacks.
294 std::map<int, JavaScriptResultCallback> javascript_callbacks_; 297 std::map<int, JavaScriptResultCallback> javascript_callbacks_;
295 298
296 // Map from notification_id to a callback to cancel them. 299 // Map from notification_id to a callback to cancel them.
297 std::map<int, base::Closure> cancel_notification_callbacks_; 300 std::map<int, base::Closure> cancel_notification_callbacks_;
298 301
299 int routing_id_; 302 int routing_id_;
300 bool is_swapped_out_; 303 bool is_swapped_out_;
304 bool renderer_initialized_;
305 bool has_received_swap_out_ack_;
301 306
302 // When the last BeforeUnload message was sent. 307 // When the last BeforeUnload message was sent.
303 base::TimeTicks send_before_unload_start_time_; 308 base::TimeTicks send_before_unload_start_time_;
304 309
305 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 310 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
306 311
307 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 312 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
308 }; 313 };
309 314
310 } // namespace content 315 } // namespace content
311 316
312 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 317 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698