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