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

Unified Diff: media/base/media_keys.h

Issue 2411573002: media: Use new wrapper types for media mojo interfaces (Closed)
Patch Set: comments addressed Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/media/android/provision_fetcher_impl.cc ('k') | media/mojo/clients/mojo_cdm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_keys.h
diff --git a/media/base/media_keys.h b/media/base/media_keys.h
index 6e094af5a857c45522f1018171df29a6589e426e..98489fd8d3eac81285b97d3ad3fa8851d3144849 100644
--- a/media/base/media_keys.h
+++ b/media/base/media_keys.h
@@ -121,7 +121,11 @@ class MEDIA_EXPORT MediaKeys
const std::vector<uint8_t>& init_data,
std::unique_ptr<NewSessionCdmPromise> promise) = 0;
- // Loads a session with the |session_id| provided.
+ // Loads a session with the |session_id| provided. Resolves the |promise| with
+ // |session_id| if the session is successfully loaded. Resolves the |promise|
+ // with an empty session ID if the session cannot be found. Rejects the
+ // |promise| if session loading is not supported, or other unexpected failure
+ // happened.
// Note: UpdateSession(), CloseSession() and RemoveSession() should only be
// called after the |promise| is resolved.
virtual void LoadSession(SessionType session_type,
« no previous file with comments | « content/browser/media/android/provision_fetcher_impl.cc ('k') | media/mojo/clients/mojo_cdm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698