Chromium Code Reviews| 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). |
|
Charlie Reis
2013/08/19 22:18:02
Can you mention the meaning of |hidden| up here?
jamesr
2013/08/19 23:50:39
Done.
| |
| 114 // | 114 // |
| 115 // The |session_storage_namespace| parameter allows multiple render views and | 115 // The |session_storage_namespace| parameter allows multiple render views and |
| 116 // WebContentses to share the same session storage (part of the WebStorage | 116 // WebContentses to share the same session storage (part of the WebStorage |
| 117 // spec) space. This is useful when restoring contentses, but most callers | 117 // spec) space. This is useful when restoring contentses, but most callers |
| 118 // should pass in NULL which will cause a new SessionStorageNamespace to be | 118 // should pass in NULL which will cause a new SessionStorageNamespace to be |
| 119 // created. | 119 // created. |
| 120 RenderViewHostImpl( | 120 RenderViewHostImpl( |
| 121 SiteInstance* instance, | 121 SiteInstance* instance, |
| 122 RenderViewHostDelegate* delegate, | 122 RenderViewHostDelegate* delegate, |
| 123 RenderWidgetHostDelegate* widget_delegate, | 123 RenderWidgetHostDelegate* widget_delegate, |
| 124 int routing_id, | 124 int routing_id, |
| 125 int main_frame_routing_id, | 125 int main_frame_routing_id, |
| 126 bool swapped_out); | 126 bool swapped_out, |
| 127 bool hidden); | |
| 127 virtual ~RenderViewHostImpl(); | 128 virtual ~RenderViewHostImpl(); |
| 128 | 129 |
| 129 // RenderViewHost implementation. | 130 // RenderViewHost implementation. |
| 130 virtual void AllowBindings(int binding_flags) OVERRIDE; | 131 virtual void AllowBindings(int binding_flags) OVERRIDE; |
| 131 virtual void ClearFocusedNode() OVERRIDE; | 132 virtual void ClearFocusedNode() OVERRIDE; |
| 132 virtual void ClosePage() OVERRIDE; | 133 virtual void ClosePage() OVERRIDE; |
| 133 virtual void CopyImageAt(int x, int y) OVERRIDE; | 134 virtual void CopyImageAt(int x, int y) OVERRIDE; |
| 134 virtual void DisassociateFromPopupCount() OVERRIDE; | 135 virtual void DisassociateFromPopupCount() OVERRIDE; |
| 135 virtual void DesktopNotificationPermissionRequestDone( | 136 virtual void DesktopNotificationPermissionRequestDone( |
| 136 int callback_context) OVERRIDE; | 137 int callback_context) OVERRIDE; |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 705 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 706 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 706 }; | 707 }; |
| 707 | 708 |
| 708 #if defined(COMPILER_MSVC) | 709 #if defined(COMPILER_MSVC) |
| 709 #pragma warning(pop) | 710 #pragma warning(pop) |
| 710 #endif | 711 #endif |
| 711 | 712 |
| 712 } // namespace content | 713 } // namespace content |
| 713 | 714 |
| 714 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 715 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |