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

Side by Side Diff: media/base/browser_cdm.h

Issue 1407933010: media: Make MediaKeys ref-counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 1 month 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
« no previous file with comments | « media/base/android/media_source_player.cc ('k') | media/base/browser_cdm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 MEDIA_BASE_BROWSER_CDM_H_
6 #define MEDIA_BASE_BROWSER_CDM_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "media/base/media_export.h"
10 #include "media/base/media_keys.h"
11 #include "media/base/player_tracker.h"
12
13 namespace media {
14
15 // Interface for browser side CDMs.
16 class MEDIA_EXPORT BrowserCdm : public MediaKeys, public PlayerTracker {
17 public:
18 ~BrowserCdm() override;
19
20 // Virtual destructor. For most subclasses we can delete on the caller thread.
21 virtual void DeleteOnCorrectThread();
22
23 protected:
24 BrowserCdm();
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(BrowserCdm);
28 };
29
30 struct MEDIA_EXPORT BrowserCdmDeleter {
31 inline void operator()(BrowserCdm* ptr) const {
32 ptr->DeleteOnCorrectThread();
33 }
34 };
35
36 using ScopedBrowserCdmPtr = scoped_ptr<BrowserCdm, BrowserCdmDeleter>;
37
38 } // namespace media
39
40 #endif // MEDIA_BASE_BROWSER_CDM_H_
OLDNEW
« no previous file with comments | « media/base/android/media_source_player.cc ('k') | media/base/browser_cdm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698