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

Side by Side Diff: chromecast/browser/media/cma_media_pipeline_client.h

Issue 1306843003: CmaMediaPipelineClient to watch media pipeline status (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CmaMediaPipelineClient Created 5 years, 3 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_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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698