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

Unified Diff: media/base/cdm_session_tracker.h

Issue 2551333002: media: Avoid access violation in MojoCdm after connection error (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/cdm_session_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/cdm_session_tracker.h
diff --git a/media/base/cdm_session_tracker.h b/media/base/cdm_session_tracker.h
index c72e25c72b40508438885f3e26e47fa5e0b9e305..98cfbbc0b25c1743647688ca421d16c75dafb448 100644
--- a/media/base/cdm_session_tracker.h
+++ b/media/base/cdm_session_tracker.h
@@ -22,16 +22,19 @@ class MEDIA_EXPORT CdmSessionTracker {
CdmSessionTracker();
~CdmSessionTracker();
- // Add |session_id| to the list of sessions being tracked.
+ // Adds |session_id| to the list of sessions being tracked.
void AddSession(const std::string& session_id);
- // Remove |session_id| from the list of sessions being tracked.
+ // Removes |session_id| from the list of sessions being tracked.
void RemoveSession(const std::string& session_id);
- // Call |session_closed_cb| on any remaining sessions in the list and then
+ // Calls |session_closed_cb| on any remaining sessions in the list and then
// clear the list.
void CloseRemainingSessions(const SessionClosedCB& session_closed_cb);
+ // Returns whether there are any remaining sessions being tracked.
+ bool HasRemainingSessions() const;
+
private:
std::unordered_set<std::string> session_ids_;
« no previous file with comments | « no previous file | media/base/cdm_session_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698