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_MEDIA_COMPONENT_DEVICE_CLIENT_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_COMPONENT_DEVICE_CLIENT_IMPL_H_
8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h"
10 #include "chromecast/public/media/media_component_device.h"
11 #include "chromecast/public/media/video_pipeline_device.h"
14 class SingleThreadTaskRunner
;
17 namespace chromecast
{
20 // Helper for implementing MediaComponentDevice::Client with
22 class MediaComponentDeviceClientImpl
: public MediaComponentDevice::Client
{
24 MediaComponentDeviceClientImpl(const base::Closure
& eos_cb
);
25 ~MediaComponentDeviceClientImpl() override
;
27 void OnEndOfStream() override
;
30 base::Closure eos_cb_
;
31 scoped_refptr
<base::SingleThreadTaskRunner
> task_runner_
;
35 } // namespace chromecast
37 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_COMPONENT_DEVICE_CLIENT_IMPL_H_