| OLD | NEW |
| 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 Loading... |
| 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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 923 int64 last_input_number_; | 926 int64 last_input_number_; |
| 924 | 927 |
| 925 BrowserRenderingStats rendering_stats_; | 928 BrowserRenderingStats rendering_stats_; |
| 926 | 929 |
| 927 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 930 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 928 }; | 931 }; |
| 929 | 932 |
| 930 } // namespace content | 933 } // namespace content |
| 931 | 934 |
| 932 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 935 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |