OLD | NEW |
---|---|
(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_BROWSER_MEDIA_CMA_MEDIA_PIPELINE_CLIENT_H_ | |
6 #define CHROMECAST_BROWSER_MEDIA_CMA_MEDIA_PIPELINE_CLIENT_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "chromecast/public/media/media_pipeline_backend.h" | |
11 | |
12 namespace chromecast { | |
13 namespace media { | |
14 | |
15 // Class to provide media backend and watch media pipeline status | |
16 class CmaMediaPipelineClient : public base::RefCounted<CmaMediaPipelineClient> { | |
17 public: | |
18 CmaMediaPipelineClient(); | |
19 | |
20 virtual scoped_ptr<MediaPipelineBackend> CreateMediaPipelineBackend( | |
21 const media::MediaPipelineDeviceParams& params); | |
22 | |
23 virtual void OnMediaPipelineBackendCreated(); | |
24 virtual void OnMediaPipelineBackendDestroyed(); | |
25 | |
26 protected: | |
27 virtual ~CmaMediaPipelineClient(); | |
28 | |
29 // TODO(yucliu): Compiler will complain either: | |
30 // 1. RefCounted::Release access private/protected destructor | |
31 // 2. Destructor should be private/protected in subclass of RefCounted | |
32 // Need to figure out why and remove this line. | |
33 friend class base::RefCounted<CmaMediaPipelineClient>; | |
gunsch
2015/08/31 15:56:52
did you try adding DISALLOW_COPY_AND_ASSIGN in thi
yucliu1
2015/08/31 17:47:40
Just reviewed ref_counted.h: https://code.google.c
| |
34 }; | |
35 } | |
36 } | |
37 | |
38 #endif | |
OLD | NEW |