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

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

Issue 1666653002: media: Remove SetCdmReadyCB and CdmReadyCB (part 1). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_CONTEXT_H_ 5 #ifndef MEDIA_BASE_CDM_CONTEXT_H_
6 #define MEDIA_BASE_CDM_CONTEXT_H_ 6 #define MEDIA_BASE_CDM_CONTEXT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 DISALLOW_COPY_AND_ASSIGN(CdmContextProvider); 61 DISALLOW_COPY_AND_ASSIGN(CdmContextProvider);
62 }; 62 };
63 63
64 // Callback to notify that the CdmContext has been completely attached to 64 // Callback to notify that the CdmContext has been completely attached to
65 // the media pipeline. Parameter indicates whether the operation succeeded. 65 // the media pipeline. Parameter indicates whether the operation succeeded.
66 typedef base::Callback<void(bool)> CdmAttachedCB; 66 typedef base::Callback<void(bool)> CdmAttachedCB;
67 67
68 // A dummy implementation of CdmAttachedCB. 68 // A dummy implementation of CdmAttachedCB.
69 MEDIA_EXPORT void IgnoreCdmAttached(bool success); 69 MEDIA_EXPORT void IgnoreCdmAttached(bool success);
70 70
71 // Callback to notify that a CDM is ready. CdmAttachedCB is called when the CDM
72 // has been completely attached to the media pipeline.
73 typedef base::Callback<void(CdmContext*, const CdmAttachedCB&)> CdmReadyCB;
74
75 // Callback to set/cancel a CdmReadyCB.
76 // Calling this callback with a non-null callback registers CDM ready
77 // notification. When the CDM is ready, notification will be sent
78 // through the provided callback.
79 // Calling this callback with a null callback cancels previously registered CDM
80 // ready notification. Any previously provided callback will be fired
81 // immediately with NULL.
82 typedef base::Callback<void(const CdmReadyCB&)> SetCdmReadyCB;
83
84 } // namespace media 71 } // namespace media
85 72
86 #endif // MEDIA_BASE_CDM_CONTEXT_H_ 73 #endif // MEDIA_BASE_CDM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698