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

Side by Side Diff: ppapi/thunk/ppb_instance_api.h

Issue 811923002: Changes to support CDM_7 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CrOS compile error Created 5 years, 11 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_THUNK_INSTANCE_API_H_ 5 #ifndef PPAPI_THUNK_INSTANCE_API_H_
6 #define PPAPI_THUNK_INSTANCE_API_H_ 6 #define PPAPI_THUNK_INSTANCE_API_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ppapi/c/dev/ppb_messaging_deprecated.h" 10 #include "ppapi/c/dev/ppb_messaging_deprecated.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 double maximum_factor) = 0; 159 double maximum_factor) = 0;
160 // Testing and URLUtil. 160 // Testing and URLUtil.
161 virtual PP_Var GetDocumentURL(PP_Instance instance, 161 virtual PP_Var GetDocumentURL(PP_Instance instance,
162 PP_URLComponents_Dev* components) = 0; 162 PP_URLComponents_Dev* components) = 0;
163 #if !defined(OS_NACL) 163 #if !defined(OS_NACL)
164 // Content Decryptor. 164 // Content Decryptor.
165 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0; 165 virtual void PromiseResolved(PP_Instance instance, uint32 promise_id) = 0;
166 virtual void PromiseResolvedWithSession(PP_Instance instance, 166 virtual void PromiseResolvedWithSession(PP_Instance instance,
167 uint32 promise_id, 167 uint32 promise_id,
168 PP_Var web_session_id_var) = 0; 168 PP_Var web_session_id_var) = 0;
169 virtual void PromiseResolvedWithKeyIds(PP_Instance instance,
170 uint32 promise_id,
171 PP_Var key_ids_var) = 0;
172 virtual void PromiseRejected(PP_Instance instance, 169 virtual void PromiseRejected(PP_Instance instance,
173 uint32 promise_id, 170 uint32 promise_id,
174 PP_CdmExceptionCode exception_code, 171 PP_CdmExceptionCode exception_code,
175 uint32 system_code, 172 uint32 system_code,
176 PP_Var error_description_var) = 0; 173 PP_Var error_description_var) = 0;
177 virtual void SessionMessage(PP_Instance instance, 174 virtual void SessionMessage(PP_Instance instance,
178 PP_Var web_session_id_var, 175 PP_Var web_session_id_var,
179 PP_Var message_var, 176 PP_CdmMessageType message_type,
180 PP_Var destination_url_var) = 0; 177 PP_Var message_var) = 0;
181 virtual void SessionKeysChange(PP_Instance instance, 178 virtual void SessionKeysChange(
182 PP_Var web_session_id_var, 179 PP_Instance instance,
183 PP_Bool has_additional_usable_key) = 0; 180 PP_Var web_session_id_var,
181 PP_Bool has_additional_usable_key,
182 uint32_t key_count,
183 const struct PP_KeyInformation key_information[]) = 0;
184 virtual void SessionExpirationChange(PP_Instance instance, 184 virtual void SessionExpirationChange(PP_Instance instance,
185 PP_Var web_session_id_var, 185 PP_Var web_session_id_var,
186 PP_Time new_expiry_time) = 0; 186 PP_Time new_expiry_time) = 0;
187 virtual void SessionReady(PP_Instance instance,
188 PP_Var web_session_id_var) = 0;
189 virtual void SessionClosed(PP_Instance instance, 187 virtual void SessionClosed(PP_Instance instance,
190 PP_Var web_session_id_var) = 0; 188 PP_Var web_session_id_var) = 0;
191 virtual void SessionError(PP_Instance instance, 189 virtual void SessionError(PP_Instance instance,
192 PP_Var web_session_id_var, 190 PP_Var web_session_id_var,
193 PP_CdmExceptionCode exception_code, 191 PP_CdmExceptionCode exception_code,
194 uint32 system_code, 192 uint32 system_code,
195 PP_Var error_description_var) = 0; 193 PP_Var error_description_var) = 0;
196 virtual void DeliverBlock(PP_Instance instance, 194 virtual void DeliverBlock(PP_Instance instance,
197 PP_Resource decrypted_block, 195 PP_Resource decrypted_block,
198 const PP_DecryptedBlockInfo* block_info) = 0; 196 const PP_DecryptedBlockInfo* block_info) = 0;
(...skipping 28 matching lines...) Expand all
227 PP_URLComponents_Dev* components) = 0; 225 PP_URLComponents_Dev* components) = 0;
228 #endif // !defined(OS_NACL) 226 #endif // !defined(OS_NACL)
229 227
230 static const ApiID kApiID = API_ID_PPB_INSTANCE; 228 static const ApiID kApiID = API_ID_PPB_INSTANCE;
231 }; 229 };
232 230
233 } // namespace thunk 231 } // namespace thunk
234 } // namespace ppapi 232 } // namespace ppapi
235 233
236 #endif // PPAPI_THUNK_INSTANCE_API_H_ 234 #endif // PPAPI_THUNK_INSTANCE_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_content_decryptor_private_thunk.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698