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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, | 86 class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost, |
87 public InputRouterClient, | 87 public InputRouterClient, |
88 public IPC::Listener { | 88 public IPC::Listener { |
89 public: | 89 public: |
90 // routing_id can be MSG_ROUTING_NONE, in which case the next available | 90 // routing_id can be MSG_ROUTING_NONE, in which case the next available |
91 // routing id is taken from the RenderProcessHost. | 91 // routing id is taken from the RenderProcessHost. |
92 // If this object outlives |delegate|, DetachDelegate() must be called when | 92 // If this object outlives |delegate|, DetachDelegate() must be called when |
93 // |delegate| goes away. | 93 // |delegate| goes away. |
94 RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, | 94 RenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, |
95 RenderProcessHost* process, | 95 RenderProcessHost* process, |
96 int routing_id); | 96 int routing_id, |
| 97 bool hidden); |
97 virtual ~RenderWidgetHostImpl(); | 98 virtual ~RenderWidgetHostImpl(); |
98 | 99 |
99 // Similar to RenderWidgetHost::FromID, but returning the Impl object. | 100 // Similar to RenderWidgetHost::FromID, but returning the Impl object. |
100 static RenderWidgetHostImpl* FromID(int32 process_id, int32 routing_id); | 101 static RenderWidgetHostImpl* FromID(int32 process_id, int32 routing_id); |
101 | 102 |
102 // Returns all RenderWidgetHosts including swapped out ones for | 103 // Returns all RenderWidgetHosts including swapped out ones for |
103 // internal use. The public interface | 104 // internal use. The public interface |
104 // RendgerWidgetHost::GetRenderWidgetHosts only returns active ones. | 105 // RendgerWidgetHost::GetRenderWidgetHosts only returns active ones. |
105 // Keep in mind that there may be dependencies between these | 106 // Keep in mind that there may be dependencies between these |
106 // widgets. If a caller indirectly causes one of the widgets to be | 107 // widgets. If a caller indirectly causes one of the widgets to be |
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 int64 last_input_number_; | 917 int64 last_input_number_; |
917 | 918 |
918 BrowserRenderingStats rendering_stats_; | 919 BrowserRenderingStats rendering_stats_; |
919 | 920 |
920 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 921 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
921 }; | 922 }; |
922 | 923 |
923 } // namespace content | 924 } // namespace content |
924 | 925 |
925 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 926 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |