| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 WebVideoLayerImpl_h | 5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_VIDEO_LAYER_IMPL_H_ |
| 6 #define WebVideoLayerImpl_h | 6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_VIDEO_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoLayer.h" | 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebVideoLayer.h" |
| 10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" | 10 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" |
| 11 | 11 |
| 12 namespace webkit { class WebToCCVideoFrameProvider; } | 12 namespace WebKit { class WebVideoFrameProvider; } |
| 13 | 13 |
| 14 namespace WebKit { | 14 namespace webkit { |
| 15 | 15 |
| 16 class WebLayerImpl; | 16 class WebLayerImpl; |
| 17 class WebVideoFrameProvider; | 17 class WebToCCVideoFrameProvider; |
| 18 | 18 |
| 19 class WebVideoLayerImpl : public WebVideoLayer { | 19 class WebVideoLayerImpl : public WebKit::WebVideoLayer { |
| 20 public: | 20 public: |
| 21 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebVideoLayerImpl( | 21 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebVideoLayerImpl( |
| 22 WebVideoFrameProvider*); | 22 WebKit::WebVideoFrameProvider*); |
| 23 virtual ~WebVideoLayerImpl(); | 23 virtual ~WebVideoLayerImpl(); |
| 24 | 24 |
| 25 // WebVideoLayer implementation. | 25 // WebKit::WebVideoLayer implementation. |
| 26 virtual WebLayer* layer(); | 26 virtual WebKit::WebLayer* layer(); |
| 27 virtual bool active() const; | 27 virtual bool active() const; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 scoped_ptr<webkit::WebToCCVideoFrameProvider> provider_adapter_; | 30 scoped_ptr<WebToCCVideoFrameProvider> provider_adapter_; |
| 31 scoped_ptr<WebLayerImpl> layer_; | 31 scoped_ptr<WebLayerImpl> layer_; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } | 34 } |
| 35 | 35 |
| 36 #endif // WebVideoLayerImpl_h | 36 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_VIDEO_LAYER_IMPL_H_ |
| OLD | NEW |