| 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 WebVideoLayerImpl_h |
| 6 #define WebVideoLayerImpl_h | 6 #define WebVideoLayerImpl_h |
| 7 | 7 |
| 8 #include <public/WebVideoLayer.h> | 8 #include <public/WebVideoLayer.h> |
| 9 | 9 |
| 10 namespace WebCore { | |
| 11 class VideoLayerChromium; | |
| 12 } | |
| 13 | |
| 14 namespace WebKit { | 10 namespace WebKit { |
| 15 class WebLayerImpl; | 11 class WebLayerImpl; |
| 16 | 12 |
| 17 class WebVideoLayerImpl : public WebVideoLayer { | 13 class WebVideoLayerImpl : public WebVideoLayer { |
| 18 public: | 14 public: |
| 19 explicit WebVideoLayerImpl(PassRefPtr<WebCore::VideoLayerChromium>); | 15 explicit WebVideoLayerImpl(WebVideoFrameProvider*); |
| 20 virtual ~WebVideoLayerImpl(); | 16 virtual ~WebVideoLayerImpl(); |
| 21 | 17 |
| 22 // WebVideoLayer implementation. | 18 // WebVideoLayer implementation. |
| 23 virtual WebLayer* layer() OVERRIDE; | 19 virtual WebLayer* layer() OVERRIDE; |
| 24 virtual bool active() const OVERRIDE; | 20 virtual bool active() const OVERRIDE; |
| 25 | 21 |
| 26 private: | 22 private: |
| 27 OwnPtr<WebLayerImpl> m_layer; | 23 OwnPtr<WebLayerImpl> m_layer; |
| 28 }; | 24 }; |
| 29 | 25 |
| 30 } | 26 } |
| 31 | 27 |
| 32 #endif // WebVideoLayerImpl_h | 28 #endif // WebVideoLayerImpl_h |
| 33 | 29 |
| OLD | NEW |