| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 5 #ifndef CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
| 6 #define CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 6 #define CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/shared_memory.h" | 16 #include "base/memory/shared_memory.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "cc/surfaces/surface_id.h" | 18 #include "cc/surfaces/surface_id.h" |
| 19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
| 20 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
| 21 | 21 |
| 22 namespace base { | |
| 23 class SharedMemory; | |
| 24 } | |
| 25 | |
| 26 namespace cc { | 22 namespace cc { |
| 27 struct SurfaceSequence; | 23 struct SurfaceSequence; |
| 28 | 24 |
| 29 class CompositorFrame; | 25 class CompositorFrame; |
| 30 class Layer; | 26 class Layer; |
| 31 class SolidColorLayer; | |
| 32 class SurfaceLayer; | |
| 33 } | 27 } |
| 34 | 28 |
| 35 namespace blink { | 29 namespace blink { |
| 36 class WebFrame; | 30 class WebFrame; |
| 37 class WebPluginContainer; | 31 class WebPluginContainer; |
| 38 class WebLayer; | 32 class WebLayer; |
| 39 } | 33 } |
| 40 | 34 |
| 41 namespace gfx { | 35 namespace gfx { |
| 42 class Rect; | |
| 43 class Size; | 36 class Size; |
| 44 } | 37 } |
| 45 | 38 |
| 46 struct FrameHostMsg_CompositorFrameSwappedACK_Params; | |
| 47 struct FrameHostMsg_ReclaimCompositorResources_Params; | |
| 48 | |
| 49 namespace content { | 39 namespace content { |
| 50 | 40 |
| 51 class BrowserPlugin; | 41 class BrowserPlugin; |
| 52 class BrowserPluginManager; | |
| 53 class RenderFrameProxy; | 42 class RenderFrameProxy; |
| 54 class ThreadSafeSender; | 43 class ThreadSafeSender; |
| 55 | 44 |
| 56 class CONTENT_EXPORT ChildFrameCompositingHelper | 45 class CONTENT_EXPORT ChildFrameCompositingHelper |
| 57 : public base::RefCounted<ChildFrameCompositingHelper> { | 46 : public base::RefCounted<ChildFrameCompositingHelper> { |
| 58 public: | 47 public: |
| 59 static ChildFrameCompositingHelper* CreateForBrowserPlugin( | 48 static ChildFrameCompositingHelper* CreateForBrowserPlugin( |
| 60 const base::WeakPtr<BrowserPlugin>& browser_plugin); | 49 const base::WeakPtr<BrowserPlugin>& browser_plugin); |
| 61 static ChildFrameCompositingHelper* CreateForRenderFrameProxy( | 50 static ChildFrameCompositingHelper* CreateForRenderFrameProxy( |
| 62 RenderFrameProxy* render_frame_proxy); | 51 RenderFrameProxy* render_frame_proxy); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 std::unique_ptr<blink::WebLayer> web_layer_; | 111 std::unique_ptr<blink::WebLayer> web_layer_; |
| 123 cc::SurfaceId surface_id_; | 112 cc::SurfaceId surface_id_; |
| 124 blink::WebFrame* frame_; | 113 blink::WebFrame* frame_; |
| 125 | 114 |
| 126 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); | 115 DISALLOW_COPY_AND_ASSIGN(ChildFrameCompositingHelper); |
| 127 }; | 116 }; |
| 128 | 117 |
| 129 } // namespace content | 118 } // namespace content |
| 130 | 119 |
| 131 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ | 120 #endif // CONTENT_RENDERER_CHILD_FRAME_COMPOSITING_HELPER_H_ |
| OLD | NEW |