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

Side by Side Diff: webkit/renderer/media/android/webmediaplayer_proxy_android.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 5 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 6 #define WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void DemuxerReady( 60 virtual void DemuxerReady(
61 int player_id, 61 int player_id,
62 const media::MediaPlayerHostMsg_DemuxerReady_Params&) = 0; 62 const media::MediaPlayerHostMsg_DemuxerReady_Params&) = 0;
63 63
64 // Return the data to the media source player when data is ready. 64 // Return the data to the media source player when data is ready.
65 virtual void ReadFromDemuxerAck( 65 virtual void ReadFromDemuxerAck(
66 int player_id, 66 int player_id,
67 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) = 0; 67 const media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) = 0;
68 68
69 virtual void GenerateKeyRequest(int player_id, 69 virtual void GenerateKeyRequest(int player_id,
70 const std::string& key_system,
71 const std::string& type, 70 const std::string& type,
72 const std::vector<uint8>& init_data) = 0; 71 const std::vector<uint8>& init_data) = 0;
73 72
74 virtual void AddKey(int player_id, 73 virtual void AddKey(int player_id,
75 const std::string& key_system,
76 const std::vector<uint8>& key, 74 const std::vector<uint8>& key,
77 const std::vector<uint8>& init_data, 75 const std::vector<uint8>& init_data,
78 const std::string& session_id) = 0; 76 const std::string& session_id) = 0;
79 77
80 virtual void CancelKeyRequest(int player_id, 78 virtual void CancelKeyRequest(int player_id,
81 const std::string& key_system,
82 const std::string& session_id) = 0; 79 const std::string& session_id) = 0;
83 80
84 // Inform the media source player of changed duration from demuxer. 81 // Inform the media source player of changed duration from demuxer.
85 virtual void DurationChanged(int player_id, 82 virtual void DurationChanged(int player_id,
86 const base::TimeDelta& duration) = 0; 83 const base::TimeDelta& duration) = 0;
87 }; 84 };
88 85
89 } // namespace webkit_media 86 } // namespace webkit_media
90 87
91 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_ 88 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_PROXY_ANDROID_H_
OLDNEW
« no previous file with comments | « webkit/renderer/media/android/webmediaplayer_android.cc ('k') | webkit/renderer/media/crypto/ppapi/clear_key_cdm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698