1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_FRAME_STATUS_CB_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_FRAME_STATUS_CB_IMPL_H_
8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h"
10 #include "chromecast/public/media/media_component_device.h"
13 class SingleThreadTaskRunner
;
16 namespace chromecast
{
19 // Helper for implementing MediaComponentDevice::FrameStatusCB with
21 class FrameStatusCBImpl
: public MediaComponentDevice::FrameStatusCB
{
23 typedef base::Callback
<void(MediaComponentDevice::FrameStatus
)> CallbackType
;
25 FrameStatusCBImpl(const CallbackType
& cb
);
26 ~FrameStatusCBImpl() override
;
28 void Run(MediaComponentDevice::FrameStatus status
) override
;
32 scoped_refptr
<base::SingleThreadTaskRunner
> task_runner_
;
36 } // namespace chromecast
38 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_FRAME_STATUS_CB_IMPL_H_