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

Side by Side Diff: content/renderer/pepper/content_decryptor_delegate.h

Issue 24192004: Changes to the EME Pepper API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 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 21 matching lines...) Expand all
32 class ContentDecryptorDelegate { 32 class ContentDecryptorDelegate {
33 public: 33 public:
34 // ContentDecryptorDelegate does not take ownership of 34 // ContentDecryptorDelegate does not take ownership of
35 // |plugin_decryption_interface|. Therefore |plugin_decryption_interface| 35 // |plugin_decryption_interface|. Therefore |plugin_decryption_interface|
36 // must outlive this object. 36 // must outlive this object.
37 ContentDecryptorDelegate( 37 ContentDecryptorDelegate(
38 PP_Instance pp_instance, 38 PP_Instance pp_instance,
39 const PPP_ContentDecryptor_Private* plugin_decryption_interface); 39 const PPP_ContentDecryptor_Private* plugin_decryption_interface);
40 ~ContentDecryptorDelegate(); 40 ~ContentDecryptorDelegate();
41 41
42 void Initialize(const std::string& key_system); 42 void Initialize(const std::string& key_system,
43 const bool can_challenge_platform);
ddorwin 2013/09/19 00:58:42 const not necessary (Google style doesn't care whe
jrummell 2013/09/19 18:15:15 Done.
43 44
44 void SetKeyEventCallbacks(const media::KeyAddedCB& key_added_cb, 45 void SetKeyEventCallbacks(const media::KeyAddedCB& key_added_cb,
45 const media::KeyErrorCB& key_error_cb, 46 const media::KeyErrorCB& key_error_cb,
46 const media::KeyMessageCB& key_message_cb); 47 const media::KeyMessageCB& key_message_cb);
47 48
48 // Provides access to PPP_ContentDecryptor_Private. 49 // Provides access to PPP_ContentDecryptor_Private.
49 bool GenerateKeyRequest(const std::string& type, 50 bool GenerateKeyRequest(const std::string& type,
50 const uint8* init_data, 51 const uint8* init_data,
51 int init_data_length); 52 int init_data_length);
52 bool AddKey(const std::string& session_id, 53 bool AddKey(const std::string& session_id,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 int audio_samples_per_second_; 185 int audio_samples_per_second_;
185 int audio_channel_count_; 186 int audio_channel_count_;
186 int audio_bytes_per_frame_; 187 int audio_bytes_per_frame_;
187 188
188 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate); 189 DISALLOW_COPY_AND_ASSIGN(ContentDecryptorDelegate);
189 }; 190 };
190 191
191 } // namespace content 192 } // namespace content
192 193
193 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_ 194 #endif // CONTENT_RENDERER_PEPPER_CONTENT_DECRYPTOR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698