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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 // which case RenderWidgetHost will create a new one. |swapped_out| indicates | 95 // which case RenderWidgetHost will create a new one. |swapped_out| indicates |
| 96 // whether the view should initially be swapped out (e.g., for an opener | 96 // whether the view should initially be swapped out (e.g., for an opener |
| 97 // frame being rendered by another process). |hidden| indicates whether the | 97 // frame being rendered by another process). |hidden| indicates whether the |
| 98 // view is initially hidden or visible. | 98 // view is initially hidden or visible. |
| 99 // | 99 // |
| 100 // The |session_storage_namespace| parameter allows multiple render views and | 100 // The |session_storage_namespace| parameter allows multiple render views and |
| 101 // WebContentses to share the same session storage (part of the WebStorage | 101 // WebContentses to share the same session storage (part of the WebStorage |
| 102 // spec) space. This is useful when restoring contentses, but most callers | 102 // spec) space. This is useful when restoring contentses, but most callers |
| 103 // should pass in NULL which will cause a new SessionStorageNamespace to be | 103 // should pass in NULL which will cause a new SessionStorageNamespace to be |
| 104 // created. | 104 // created. |
| 105 RenderViewHostImpl( | 105 RenderViewHostImpl(SiteInstance* instance, |
| 106 SiteInstance* instance, | 106 RenderViewHostDelegate* delegate, |
| 107 RenderViewHostDelegate* delegate, | 107 RenderWidgetHostDelegate* widget_delegate, |
| 108 RenderWidgetHostDelegate* widget_delegate, | 108 int routing_id, |
| 109 int routing_id, | 109 int main_frame_routing_id, |
| 110 int main_frame_routing_id, | 110 bool swapped_out, |
| 111 bool swapped_out, | 111 bool hidden, |
| 112 bool hidden); | 112 bool setup_for_testing); |
|
jam
2014/10/01 00:12:36
nit: can we just call this create_audio_renderer_h
| |
| 113 virtual ~RenderViewHostImpl(); | 113 virtual ~RenderViewHostImpl(); |
| 114 | 114 |
| 115 // RenderViewHost implementation. | 115 // RenderViewHost implementation. |
| 116 virtual RenderFrameHost* GetMainFrame() OVERRIDE; | 116 virtual RenderFrameHost* GetMainFrame() OVERRIDE; |
| 117 virtual void AllowBindings(int binding_flags) OVERRIDE; | 117 virtual void AllowBindings(int binding_flags) OVERRIDE; |
| 118 virtual void ClearFocusedElement() OVERRIDE; | 118 virtual void ClearFocusedElement() OVERRIDE; |
| 119 virtual bool IsFocusedElementEditable() OVERRIDE; | 119 virtual bool IsFocusedElementEditable() OVERRIDE; |
| 120 virtual void ClosePage() OVERRIDE; | 120 virtual void ClosePage() OVERRIDE; |
| 121 virtual void CopyImageAt(int x, int y) OVERRIDE; | 121 virtual void CopyImageAt(int x, int y) OVERRIDE; |
| 122 virtual void SaveImageAt(int x, int y) OVERRIDE; | 122 virtual void SaveImageAt(int x, int y) OVERRIDE; |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 468 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 468 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 469 }; | 469 }; |
| 470 | 470 |
| 471 #if defined(COMPILER_MSVC) | 471 #if defined(COMPILER_MSVC) |
| 472 #pragma warning(pop) | 472 #pragma warning(pop) |
| 473 #endif | 473 #endif |
| 474 | 474 |
| 475 } // namespace content | 475 } // namespace content |
| 476 | 476 |
| 477 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 477 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |