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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 16431010: Refactor RenderProcessHost to use IPC::Listener instead of RenderWidgetHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on top of hash_pair move. Created 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 public: 87 public:
88 // routing_id can be MSG_ROUTING_NONE, in which case the next available 88 // routing_id can be MSG_ROUTING_NONE, in which case the next available
89 // routing id is taken from the RenderProcessHost. 89 // routing id is taken from the RenderProcessHost.
90 // If this object outlives |delegate|, DetachDelegate() must be called when 90 // If this object outlives |delegate|, DetachDelegate() must be called when
91 // |delegate| goes away. 91 // |delegate| goes away.
92 RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, 92 RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate,
93 RenderProcessHost* process, 93 RenderProcessHost* process,
94 int routing_id); 94 int routing_id);
95 virtual ~RenderWidgetHostImpl(); 95 virtual ~RenderWidgetHostImpl();
96 96
97 // Similar to RenderWidgetHost::FromID, but returning the Impl object.
98 static RenderWidgetHostImpl* FromID(int32 process_id, int32 routing_id);
99
97 // Use RenderWidgetHostImpl::From(rwh) to downcast a 100 // Use RenderWidgetHostImpl::From(rwh) to downcast a
98 // RenderWidgetHost to a RenderWidgetHostImpl. Internally, this 101 // RenderWidgetHost to a RenderWidgetHostImpl. Internally, this
99 // uses RenderWidgetHost::AsRenderWidgetHostImpl(). 102 // uses RenderWidgetHost::AsRenderWidgetHostImpl().
100 static RenderWidgetHostImpl* From(RenderWidgetHost* rwh); 103 static RenderWidgetHostImpl* From(RenderWidgetHost* rwh);
101 104
102 void set_hung_renderer_delay_ms(const base::TimeDelta& timeout) { 105 void set_hung_renderer_delay_ms(const base::TimeDelta& timeout) {
103 hung_renderer_delay_ms_ = timeout.InMilliseconds(); 106 hung_renderer_delay_ms_ = timeout.InMilliseconds();
104 } 107 }
105 108
106 // RenderWidgetHost implementation. 109 // RenderWidgetHost implementation.
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 int64 last_input_number_; 938 int64 last_input_number_;
936 939
937 BrowserRenderingStats rendering_stats_; 940 BrowserRenderingStats rendering_stats_;
938 941
939 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 942 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
940 }; 943 };
941 944
942 } // namespace content 945 } // namespace content
943 946
944 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 947 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698