Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: chromecast/media/cma/pipeline/media_component_device_client_impl.h

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_COMPONENT_DEVICE_CLIENT_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_COMPONENT_DEVICE_CLIENT_IMPL_H_
7
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"
12
13 namespace base {
14 class SingleThreadTaskRunner;
15 }
16
17 namespace chromecast {
18 namespace media {
19
20 // Helper for implementing MediaComponentDevice::Client with
21 // a base::Callback.
22 class MediaComponentDeviceClientImpl : public MediaComponentDevice::Client {
23 public:
24 MediaComponentDeviceClientImpl(const base::Closure& eos_cb);
25 ~MediaComponentDeviceClientImpl() override;
26
27 void OnEndOfStream() override;
28
29 private:
30 base::Closure eos_cb_;
31 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
32 };
33
34 } // namespace media
35 } // namespace chromecast
36
37 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_COMPONENT_DEVICE_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698