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

Side by Side Diff: ppapi/cpp/private/content_decryptor_private.h

Issue 1102363005: Initialize the CDM asynchronously (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create() changes Created 5 years, 7 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 PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ 5 #ifndef PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ 6 #define PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 class ContentDecryptor_Private { 27 class ContentDecryptor_Private {
28 public: 28 public:
29 explicit ContentDecryptor_Private(Instance* instance); 29 explicit ContentDecryptor_Private(Instance* instance);
30 virtual ~ContentDecryptor_Private(); 30 virtual ~ContentDecryptor_Private();
31 31
32 // PPP_ContentDecryptor_Private functions exposed as virtual functions 32 // PPP_ContentDecryptor_Private functions exposed as virtual functions
33 // for you to override. 33 // for you to override.
34 // TODO(tomfinegan): This could be optimized to pass pp::Var instead of 34 // TODO(tomfinegan): This could be optimized to pass pp::Var instead of
35 // strings. The change would allow the CDM wrapper to reuse vars when 35 // strings. The change would allow the CDM wrapper to reuse vars when
36 // replying to the browser. 36 // replying to the browser.
37 virtual void Initialize(const std::string& key_system, 37 virtual void Initialize(uint32_t promise_id,
38 const std::string& key_system,
38 bool allow_distinctive_identifier, 39 bool allow_distinctive_identifier,
39 bool allow_persistent_state) = 0; 40 bool allow_persistent_state) = 0;
40 virtual void SetServerCertificate(uint32_t promise_id, 41 virtual void SetServerCertificate(uint32_t promise_id,
41 pp::VarArrayBuffer server_certificate) = 0; 42 pp::VarArrayBuffer server_certificate) = 0;
42 virtual void CreateSessionAndGenerateRequest( 43 virtual void CreateSessionAndGenerateRequest(
43 uint32_t promise_id, 44 uint32_t promise_id,
44 PP_SessionType session_type, 45 PP_SessionType session_type,
45 PP_InitDataType init_data_type, 46 PP_InitDataType init_data_type,
46 pp::VarArrayBuffer init_data) = 0; 47 pp::VarArrayBuffer init_data) = 0;
47 virtual void LoadSession(uint32_t promise_id, 48 virtual void LoadSession(uint32_t promise_id,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void DeliverSamples(pp::Buffer_Dev audio_frames, 123 void DeliverSamples(pp::Buffer_Dev audio_frames,
123 const PP_DecryptedSampleInfo& decrypted_sample_info); 124 const PP_DecryptedSampleInfo& decrypted_sample_info);
124 125
125 private: 126 private:
126 InstanceHandle associated_instance_; 127 InstanceHandle associated_instance_;
127 }; 128 };
128 129
129 } // namespace pp 130 } // namespace pp
130 131
131 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_ 132 #endif // PPAPI_CPP_PRIVATE_CONTENT_DECRYPTOR_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698