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

Side by Side Diff: content/renderer/pepper/content_decryptor_delegate.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 (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 CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 6 #define CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 const media::SessionMessageCB& session_message_cb, 46 const media::SessionMessageCB& session_message_cb,
47 const media::SessionReadyCB& session_ready_cb, 47 const media::SessionReadyCB& session_ready_cb,
48 const media::SessionClosedCB& session_closed_cb, 48 const media::SessionClosedCB& session_closed_cb,
49 const media::SessionErrorCB& session_error_cb, 49 const media::SessionErrorCB& session_error_cb,
50 const base::Closure& fatal_plugin_error_cb); 50 const base::Closure& fatal_plugin_error_cb);
51 51
52 void InstanceCrashed(); 52 void InstanceCrashed();
53 53
54 // Provides access to PPP_ContentDecryptor_Private. 54 // Provides access to PPP_ContentDecryptor_Private.
55 bool CreateSession(uint32 session_id, 55 bool CreateSession(uint32 session_id,
56 const std::string& type, 56 const std::string& content_type,
57 const uint8* init_data, 57 const uint8* init_data,
58 int init_data_length); 58 int init_data_length);
59 void LoadSession(uint32 session_id, const std::string& web_session_id);
59 bool UpdateSession(uint32 session_id, 60 bool UpdateSession(uint32 session_id,
60 const uint8* response, 61 const uint8* response,
61 int response_length); 62 int response_length);
62 bool ReleaseSession(uint32 session_id); 63 bool ReleaseSession(uint32 session_id);
63 bool Decrypt(media::Decryptor::StreamType stream_type, 64 bool Decrypt(media::Decryptor::StreamType stream_type,
64 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer, 65 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
65 const media::Decryptor::DecryptCB& decrypt_cb); 66 const media::Decryptor::DecryptCB& decrypt_cb);
66 bool CancelDecrypt(media::Decryptor::StreamType stream_type); 67 bool CancelDecrypt(media::Decryptor::StreamType stream_type);
67 bool InitializeAudioDecoder( 68 bool InitializeAudioDecoder(
68 const media::AudioDecoderConfig& decoder_config, 69 const media::AudioDecoderConfig& decoder_config,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 214
214 base::WeakPtr<ContentDecryptorDelegate> weak_this_; 215 base::WeakPtr<ContentDecryptorDelegate> weak_this_;
215 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_; 216 base::WeakPtrFactory<ContentDecryptorDelegate> weak_ptr_factory_;
216 217
217 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); 218 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate);
218 }; 219 };
219 220
220 } // namespace content 221 } // namespace content
221 222
222 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 223 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/proxy_decryptor.cc ('k') | content/renderer/pepper/content_decryptor_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698