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

Side by Side Diff: mojo/examples/pepper_container_app/plugin_instance.cc

Issue 265993002: Add Promises for EME (Chromium side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more trybot issue Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "mojo/examples/pepper_container_app/plugin_instance.h" 5 #include "mojo/examples/pepper_container_app/plugin_instance.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "mojo/examples/pepper_container_app/graphics_3d_resource.h" 8 #include "mojo/examples/pepper_container_app/graphics_3d_resource.h"
9 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h" 9 #include "mojo/examples/pepper_container_app/mojo_ppapi_globals.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 double maximum_factor) { 293 double maximum_factor) {
294 NOTIMPLEMENTED(); 294 NOTIMPLEMENTED();
295 } 295 }
296 296
297 PP_Var PluginInstance::GetDocumentURL(PP_Instance instance, 297 PP_Var PluginInstance::GetDocumentURL(PP_Instance instance,
298 PP_URLComponents_Dev* components) { 298 PP_URLComponents_Dev* components) {
299 NOTIMPLEMENTED(); 299 NOTIMPLEMENTED();
300 return PP_MakeUndefined(); 300 return PP_MakeUndefined();
301 } 301 }
302 302
303 void PluginInstance::SessionCreated(PP_Instance instance, 303 void PluginInstance::PromiseResolved(PP_Instance instance, uint32 promise_id) {
304 uint32_t session_id, 304 NOTIMPLEMENTED();
305 PP_Var web_session_id) { 305 }
306
307 void PluginInstance::PromiseResolvedWithSession(PP_Instance instance,
308 uint32 promise_id,
309 PP_Var web_session_id_var) {
310 NOTIMPLEMENTED();
311 }
312
313 void PluginInstance::PromiseRejected(PP_Instance instance,
314 uint32 promise_id,
315 PP_CdmExceptionCode exception_code,
316 uint32 system_code,
317 PP_Var error_description_var) {
306 NOTIMPLEMENTED(); 318 NOTIMPLEMENTED();
307 } 319 }
308 320
309 void PluginInstance::SessionMessage(PP_Instance instance, 321 void PluginInstance::SessionMessage(PP_Instance instance,
310 uint32_t session_id, 322 PP_Var web_session_id_var,
311 PP_Var message, 323 PP_Var message_var,
312 PP_Var destination_url) { 324 PP_Var destination_url_var) {
313 NOTIMPLEMENTED(); 325 NOTIMPLEMENTED();
314 } 326 }
315 327
316 void PluginInstance::SessionReady(PP_Instance instance, uint32_t session_id) { 328 void PluginInstance::SessionReady(PP_Instance instance,
329 PP_Var web_session_id_var) {
317 NOTIMPLEMENTED(); 330 NOTIMPLEMENTED();
318 } 331 }
319 332
320 void PluginInstance::SessionClosed(PP_Instance instance, uint32_t session_id) { 333 void PluginInstance::SessionClosed(PP_Instance instance,
334 PP_Var web_session_id_var) {
321 NOTIMPLEMENTED(); 335 NOTIMPLEMENTED();
322 } 336 }
323 337
324 void PluginInstance::SessionError(PP_Instance instance, 338 void PluginInstance::SessionError(PP_Instance instance,
325 uint32_t session_id, 339 PP_Var web_session_id_var,
326 int32_t media_error, 340 PP_CdmExceptionCode exception_code,
327 uint32_t system_code) { 341 uint32 system_code,
342 PP_Var error_description_var) {
328 NOTIMPLEMENTED(); 343 NOTIMPLEMENTED();
329 } 344 }
330 345
331 void PluginInstance::DeliverBlock(PP_Instance instance, 346 void PluginInstance::DeliverBlock(PP_Instance instance,
332 PP_Resource decrypted_block, 347 PP_Resource decrypted_block,
333 const PP_DecryptedBlockInfo* block_info) { 348 const PP_DecryptedBlockInfo* block_info) {
334 NOTIMPLEMENTED(); 349 NOTIMPLEMENTED();
335 } 350 }
336 351
337 void PluginInstance::DecoderInitializeDone(PP_Instance instance, 352 void PluginInstance::DecoderInitializeDone(PP_Instance instance,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 } 407 }
393 408
394 PP_Var PluginInstance::GetPluginReferrerURL(PP_Instance instance, 409 PP_Var PluginInstance::GetPluginReferrerURL(PP_Instance instance,
395 PP_URLComponents_Dev* components) { 410 PP_URLComponents_Dev* components) {
396 NOTIMPLEMENTED(); 411 NOTIMPLEMENTED();
397 return PP_MakeUndefined(); 412 return PP_MakeUndefined();
398 } 413 }
399 414
400 } // namespace examples 415 } // namespace examples
401 } // namespace mojo 416 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/examples/pepper_container_app/plugin_instance.h ('k') | ppapi/api/private/pp_content_decryptor.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698