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

Side by Side Diff: content/renderer/media/android/proxy_media_keys.h

Issue 131653003: Support LoadSession() in MediaKeys and PPP_ContentDecryptor_Private interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 6 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 | Annotate | Revision Log
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 CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "media/base/media_keys.h" 9 #include "media/base/media_keys.h"
10 10
(...skipping 15 matching lines...) Expand all
26 const media::SessionMessageCB& session_message_cb, 26 const media::SessionMessageCB& session_message_cb,
27 const media::SessionReadyCB& session_ready_cb, 27 const media::SessionReadyCB& session_ready_cb,
28 const media::SessionClosedCB& session_closed_cb, 28 const media::SessionClosedCB& session_closed_cb,
29 const media::SessionErrorCB& session_error_cb); 29 const media::SessionErrorCB& session_error_cb);
30 virtual ~ProxyMediaKeys(); 30 virtual ~ProxyMediaKeys();
31 31
32 void InitializeCDM(const std::string& key_system, const GURL& frame_url); 32 void InitializeCDM(const std::string& key_system, const GURL& frame_url);
33 33
34 // MediaKeys implementation. 34 // MediaKeys implementation.
35 virtual bool CreateSession(uint32 session_id, 35 virtual bool CreateSession(uint32 session_id,
36 const std::string& type, 36 const std::string& content_type,
37 const uint8* init_data, 37 const uint8* init_data,
38 int init_data_length) OVERRIDE; 38 int init_data_length) OVERRIDE;
39 virtual void LoadSession(uint32 session_id,
40 const std::string& web_session_id) OVERRIDE;
39 virtual void UpdateSession(uint32 session_id, 41 virtual void UpdateSession(uint32 session_id,
40 const uint8* response, 42 const uint8* response,
41 int response_length) OVERRIDE; 43 int response_length) OVERRIDE;
42 virtual void ReleaseSession(uint32 session_id) OVERRIDE; 44 virtual void ReleaseSession(uint32 session_id) OVERRIDE;
43 45
44 // Callbacks. 46 // Callbacks.
45 void OnSessionCreated(uint32 session_id, const std::string& web_session_id); 47 void OnSessionCreated(uint32 session_id, const std::string& web_session_id);
46 void OnSessionMessage(uint32 session_id, 48 void OnSessionMessage(uint32 session_id,
47 const std::vector<uint8>& message, 49 const std::vector<uint8>& message,
48 const std::string& destination_url); 50 const std::string& destination_url);
(...skipping 11 matching lines...) Expand all
60 media::SessionReadyCB session_ready_cb_; 62 media::SessionReadyCB session_ready_cb_;
61 media::SessionClosedCB session_closed_cb_; 63 media::SessionClosedCB session_closed_cb_;
62 media::SessionErrorCB session_error_cb_; 64 media::SessionErrorCB session_error_cb_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(ProxyMediaKeys); 66 DISALLOW_COPY_AND_ASSIGN(ProxyMediaKeys);
65 }; 67 };
66 68
67 } // namespace content 69 } // namespace content
68 70
69 #endif // CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_ 71 #endif // CONTENT_RENDERER_MEDIA_ANDROID_PROXY_MEDIA_KEYS_H_
OLDNEW
« no previous file with comments | « content/browser/media/android/browser_media_player_manager.cc ('k') | content/renderer/media/android/proxy_media_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698