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

Side by Side Diff: content/renderer/media/crypto/ppapi_decryptor.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_CRYPTO_PPAPI_DECRYPTOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 25 matching lines...) Expand all
36 const media::SessionMessageCB& session_message_cb, 36 const media::SessionMessageCB& session_message_cb,
37 const media::SessionReadyCB& session_ready_cb, 37 const media::SessionReadyCB& session_ready_cb,
38 const media::SessionClosedCB& session_closed_cb, 38 const media::SessionClosedCB& session_closed_cb,
39 const media::SessionErrorCB& session_error_cb, 39 const media::SessionErrorCB& session_error_cb,
40 const base::Closure& destroy_plugin_cb); 40 const base::Closure& destroy_plugin_cb);
41 41
42 virtual ~PpapiDecryptor(); 42 virtual ~PpapiDecryptor();
43 43
44 // media::MediaKeys implementation. 44 // media::MediaKeys implementation.
45 virtual bool CreateSession(uint32 session_id, 45 virtual bool CreateSession(uint32 session_id,
46 const std::string& type, 46 const std::string& content_type,
47 const uint8* init_data, 47 const uint8* init_data,
48 int init_data_length) OVERRIDE; 48 int init_data_length) OVERRIDE;
49 virtual void LoadSession(uint32 session_id,
50 const std::string& web_session_id) OVERRIDE;
49 virtual void UpdateSession(uint32 session_id, 51 virtual void UpdateSession(uint32 session_id,
50 const uint8* response, 52 const uint8* response,
51 int response_length) OVERRIDE; 53 int response_length) OVERRIDE;
52 virtual void ReleaseSession(uint32 session_id) OVERRIDE; 54 virtual void ReleaseSession(uint32 session_id) OVERRIDE;
53 virtual Decryptor* GetDecryptor() OVERRIDE; 55 virtual Decryptor* GetDecryptor() OVERRIDE;
54 56
55 // media::Decryptor implementation. 57 // media::Decryptor implementation.
56 virtual void RegisterNewKeyCB(StreamType stream_type, 58 virtual void RegisterNewKeyCB(StreamType stream_type,
57 const NewKeyCB& key_added_cb) OVERRIDE; 59 const NewKeyCB& key_added_cb) OVERRIDE;
58 virtual void Decrypt(StreamType stream_type, 60 virtual void Decrypt(StreamType stream_type,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 NewKeyCB new_video_key_cb_; 132 NewKeyCB new_video_key_cb_;
131 133
132 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_; 134 base::WeakPtrFactory<PpapiDecryptor> weak_ptr_factory_;
133 135
134 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor); 136 DISALLOW_COPY_AND_ASSIGN(PpapiDecryptor);
135 }; 137 };
136 138
137 } // namespace content 139 } // namespace content
138 140
139 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_ 141 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_PPAPI_DECRYPTOR_H_
OLDNEW
« no previous file with comments | « content/renderer/media/android/proxy_media_keys.cc ('k') | content/renderer/media/crypto/ppapi_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698