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

Side by Side Diff: media/base/android/media_player_manager.h

Issue 17289006: Separate CDM initialization from GenerateKeyRequest & remove key_system parameters. (Closed) Base URL: master
Patch Set: rebase only Created 7 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ANDROID_MEDIA_PLAYER_MANAGER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "media/base/android/demuxer_stream_player_params.h" 9 #include "media/base/android/demuxer_stream_player_params.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 // Get the MediaDrmBridge object for the given media key Id. 110 // Get the MediaDrmBridge object for the given media key Id.
111 virtual media::MediaDrmBridge* GetDrmBridge(int media_keys_id) = 0; 111 virtual media::MediaDrmBridge* GetDrmBridge(int media_keys_id) = 0;
112 112
113 // TODO(xhwang): The following three methods needs to be decoupled from 113 // TODO(xhwang): The following three methods needs to be decoupled from
114 // MediaPlayerManager to support the W3C Working Draft version of the EME 114 // MediaPlayerManager to support the W3C Working Draft version of the EME
115 // spec. 115 // spec.
116 116
117 // Called when the DRM engine wants to send a KeyAdded. 117 // Called when the DRM engine wants to send a KeyAdded.
118 virtual void OnKeyAdded(int key_id, 118 virtual void OnKeyAdded(int key_id,
119 const std::string& key_system,
120 const std::string& session_id) = 0; 119 const std::string& session_id) = 0;
121 120
122 // Called when the DRM engine wants to send a KeyError. 121 // Called when the DRM engine wants to send a KeyError.
123 virtual void OnKeyError(int key_id, 122 virtual void OnKeyError(int key_id,
124 const std::string& key_system,
125 const std::string& session_id, 123 const std::string& session_id,
126 media::MediaKeys::KeyError error_code, 124 media::MediaKeys::KeyError error_code,
127 int system_code) = 0; 125 int system_code) = 0;
128 126
129 // Called when the DRM engine wants to send a KeyMessage. 127 // Called when the DRM engine wants to send a KeyMessage.
130 virtual void OnKeyMessage(int key_id, 128 virtual void OnKeyMessage(int key_id,
131 const std::string& key_system,
132 const std::string& session_id, 129 const std::string& session_id,
133 const std::string& message, 130 const std::string& message,
134 const std::string& destination_url) = 0; 131 const std::string& destination_url) = 0;
135 }; 132 };
136 133
137 } // namespace media 134 } // namespace media
138 135
139 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_ 136 #endif // MEDIA_BASE_ANDROID_MEDIA_PLAYER_MANAGER_H_
OLDNEW
« no previous file with comments | « media/base/android/media_drm_bridge.cc ('k') | media/base/android/media_source_player_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698