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_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 class CONTENT_EXPORT RenderViewHostImpl | 103 class CONTENT_EXPORT RenderViewHostImpl |
104 : public RenderViewHost, | 104 : public RenderViewHost, |
105 public RenderWidgetHostImpl { | 105 public RenderWidgetHostImpl { |
106 public: | 106 public: |
107 // Convenience function, just like RenderViewHost::FromID. | 107 // Convenience function, just like RenderViewHost::FromID. |
108 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id); | 108 static RenderViewHostImpl* FromID(int render_process_id, int render_view_id); |
109 | 109 |
110 // |routing_id| could be a valid route id, or it could be MSG_ROUTING_NONE, in | 110 // |routing_id| could be a valid route id, or it could be MSG_ROUTING_NONE, in |
111 // which case RenderWidgetHost will create a new one. |swapped_out| indicates | 111 // which case RenderWidgetHost will create a new one. |swapped_out| indicates |
112 // whether the view should initially be swapped out (e.g., for an opener | 112 // whether the view should initially be swapped out (e.g., for an opener |
113 // frame being rendered by another process). | 113 // frame being rendered by another process). |hidden| indicates whether the |
| 114 // view is initially hidden or visible. |
114 // | 115 // |
115 // The |session_storage_namespace| parameter allows multiple render views and | 116 // The |session_storage_namespace| parameter allows multiple render views and |
116 // WebContentses to share the same session storage (part of the WebStorage | 117 // WebContentses to share the same session storage (part of the WebStorage |
117 // spec) space. This is useful when restoring contentses, but most callers | 118 // spec) space. This is useful when restoring contentses, but most callers |
118 // should pass in NULL which will cause a new SessionStorageNamespace to be | 119 // should pass in NULL which will cause a new SessionStorageNamespace to be |
119 // created. | 120 // created. |
120 RenderViewHostImpl( | 121 RenderViewHostImpl( |
121 SiteInstance* instance, | 122 SiteInstance* instance, |
122 RenderViewHostDelegate* delegate, | 123 RenderViewHostDelegate* delegate, |
123 RenderWidgetHostDelegate* widget_delegate, | 124 RenderWidgetHostDelegate* widget_delegate, |
124 int routing_id, | 125 int routing_id, |
125 int main_frame_routing_id, | 126 int main_frame_routing_id, |
126 bool swapped_out); | 127 bool swapped_out, |
| 128 bool hidden); |
127 virtual ~RenderViewHostImpl(); | 129 virtual ~RenderViewHostImpl(); |
128 | 130 |
129 // RenderViewHost implementation. | 131 // RenderViewHost implementation. |
130 virtual void AllowBindings(int binding_flags) OVERRIDE; | 132 virtual void AllowBindings(int binding_flags) OVERRIDE; |
131 virtual void ClearFocusedNode() OVERRIDE; | 133 virtual void ClearFocusedNode() OVERRIDE; |
132 virtual void ClosePage() OVERRIDE; | 134 virtual void ClosePage() OVERRIDE; |
133 virtual void CopyImageAt(int x, int y) OVERRIDE; | 135 virtual void CopyImageAt(int x, int y) OVERRIDE; |
134 virtual void DisassociateFromPopupCount() OVERRIDE; | 136 virtual void DisassociateFromPopupCount() OVERRIDE; |
135 virtual void DesktopNotificationPermissionRequestDone( | 137 virtual void DesktopNotificationPermissionRequestDone( |
136 int callback_context) OVERRIDE; | 138 int callback_context) OVERRIDE; |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 707 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
706 }; | 708 }; |
707 | 709 |
708 #if defined(COMPILER_MSVC) | 710 #if defined(COMPILER_MSVC) |
709 #pragma warning(pop) | 711 #pragma warning(pop) |
710 #endif | 712 #endif |
711 | 713 |
712 } // namespace content | 714 } // namespace content |
713 | 715 |
714 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 716 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |