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

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

Issue 2568463003: media: Rename MediaKeys to ContentDecryptionModule (Closed)
Patch Set: comments addressed Created 4 years 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/cdm_promise_adapter.cc ('k') | media/base/content_decryption_module.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_CDM_SESSION_TRACKER_H_ 5 #ifndef MEDIA_BASE_CDM_SESSION_TRACKER_H_
6 #define MEDIA_BASE_CDM_SESSION_TRACKER_H_ 6 #define MEDIA_BASE_CDM_SESSION_TRACKER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <unordered_set> 11 #include <unordered_set>
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "media/base/content_decryption_module.h"
15 #include "media/base/media_export.h" 16 #include "media/base/media_export.h"
16 #include "media/base/media_keys.h"
17 17
18 namespace media { 18 namespace media {
19 19
20 class MEDIA_EXPORT CdmSessionTracker { 20 class MEDIA_EXPORT CdmSessionTracker {
21 public: 21 public:
22 CdmSessionTracker(); 22 CdmSessionTracker();
23 ~CdmSessionTracker(); 23 ~CdmSessionTracker();
24 24
25 // Adds |session_id| to the list of sessions being tracked. 25 // Adds |session_id| to the list of sessions being tracked.
26 void AddSession(const std::string& session_id); 26 void AddSession(const std::string& session_id);
(...skipping 10 matching lines...) Expand all
37 37
38 private: 38 private:
39 std::unordered_set<std::string> session_ids_; 39 std::unordered_set<std::string> session_ids_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(CdmSessionTracker); 41 DISALLOW_COPY_AND_ASSIGN(CdmSessionTracker);
42 }; 42 };
43 43
44 } // namespace media 44 } // namespace media
45 45
46 #endif // MEDIA_BASE_CDM_SESSION_TRACKER_H_ 46 #endif // MEDIA_BASE_CDM_SESSION_TRACKER_H_
OLDNEW
« no previous file with comments | « media/base/cdm_promise_adapter.cc ('k') | media/base/content_decryption_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698