OLD | NEW |
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_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
8 #include <list> | 11 #include <list> |
9 #include <set> | 12 #include <set> |
10 #include <string> | 13 #include <string> |
11 #include <vector> | 14 #include <vector> |
12 | 15 |
13 #include "base/callback.h" | 16 #include "base/callback.h" |
14 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 18 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
18 #include "base/strings/string16.h" | 22 #include "base/strings/string16.h" |
| 23 #include "build/build_config.h" |
19 #include "cc/layers/content_layer_client.h" | 24 #include "cc/layers/content_layer_client.h" |
20 #include "cc/layers/layer.h" | 25 #include "cc/layers/layer.h" |
21 #include "cc/layers/texture_layer_client.h" | 26 #include "cc/layers/texture_layer_client.h" |
22 #include "content/common/content_export.h" | 27 #include "content/common/content_export.h" |
23 #include "content/public/renderer/pepper_plugin_instance.h" | 28 #include "content/public/renderer/pepper_plugin_instance.h" |
24 #include "content/public/renderer/plugin_instance_throttler.h" | 29 #include "content/public/renderer/plugin_instance_throttler.h" |
25 #include "content/public/renderer/render_frame.h" | 30 #include "content/public/renderer/render_frame.h" |
26 #include "content/public/renderer/render_frame_observer.h" | 31 #include "content/public/renderer/render_frame_observer.h" |
27 #include "content/renderer/mouse_lock_dispatcher.h" | 32 #include "content/renderer/mouse_lock_dispatcher.h" |
28 #include "gin/handle.h" | 33 #include "gin/handle.h" |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 PP_Bool DocumentCanAccessDocument(PP_Instance instance, | 456 PP_Bool DocumentCanAccessDocument(PP_Instance instance, |
452 PP_Instance target) override; | 457 PP_Instance target) override; |
453 PP_Var GetDocumentURL(PP_Instance instance, | 458 PP_Var GetDocumentURL(PP_Instance instance, |
454 PP_URLComponents_Dev* components) override; | 459 PP_URLComponents_Dev* components) override; |
455 PP_Var GetPluginInstanceURL(PP_Instance instance, | 460 PP_Var GetPluginInstanceURL(PP_Instance instance, |
456 PP_URLComponents_Dev* components) override; | 461 PP_URLComponents_Dev* components) override; |
457 PP_Var GetPluginReferrerURL(PP_Instance instance, | 462 PP_Var GetPluginReferrerURL(PP_Instance instance, |
458 PP_URLComponents_Dev* components) override; | 463 PP_URLComponents_Dev* components) override; |
459 | 464 |
460 // PPB_ContentDecryptor_Private implementation. | 465 // PPB_ContentDecryptor_Private implementation. |
461 void PromiseResolved(PP_Instance instance, uint32 promise_id) override; | 466 void PromiseResolved(PP_Instance instance, uint32_t promise_id) override; |
462 void PromiseResolvedWithSession(PP_Instance instance, | 467 void PromiseResolvedWithSession(PP_Instance instance, |
463 uint32 promise_id, | 468 uint32_t promise_id, |
464 PP_Var session_id_var) override; | 469 PP_Var session_id_var) override; |
465 void PromiseRejected(PP_Instance instance, | 470 void PromiseRejected(PP_Instance instance, |
466 uint32 promise_id, | 471 uint32_t promise_id, |
467 PP_CdmExceptionCode exception_code, | 472 PP_CdmExceptionCode exception_code, |
468 uint32 system_code, | 473 uint32_t system_code, |
469 PP_Var error_description_var) override; | 474 PP_Var error_description_var) override; |
470 void SessionMessage(PP_Instance instance, | 475 void SessionMessage(PP_Instance instance, |
471 PP_Var session_id_var, | 476 PP_Var session_id_var, |
472 PP_CdmMessageType message_type, | 477 PP_CdmMessageType message_type, |
473 PP_Var message_var, | 478 PP_Var message_var, |
474 PP_Var legacy_destination_url) override; | 479 PP_Var legacy_destination_url) override; |
475 void SessionKeysChange( | 480 void SessionKeysChange( |
476 PP_Instance instance, | 481 PP_Instance instance, |
477 PP_Var session_id_var, | 482 PP_Var session_id_var, |
478 PP_Bool has_additional_usable_key, | 483 PP_Bool has_additional_usable_key, |
479 uint32_t key_count, | 484 uint32_t key_count, |
480 const struct PP_KeyInformation key_information[]) override; | 485 const struct PP_KeyInformation key_information[]) override; |
481 void SessionExpirationChange(PP_Instance instance, | 486 void SessionExpirationChange(PP_Instance instance, |
482 PP_Var session_id_var, | 487 PP_Var session_id_var, |
483 PP_Time new_expiry_time) override; | 488 PP_Time new_expiry_time) override; |
484 void SessionClosed(PP_Instance instance, PP_Var session_id_var) override; | 489 void SessionClosed(PP_Instance instance, PP_Var session_id_var) override; |
485 void LegacySessionError(PP_Instance instance, | 490 void LegacySessionError(PP_Instance instance, |
486 PP_Var session_id_var, | 491 PP_Var session_id_var, |
487 PP_CdmExceptionCode exception_code, | 492 PP_CdmExceptionCode exception_code, |
488 uint32 system_code, | 493 uint32_t system_code, |
489 PP_Var error_description_var) override; | 494 PP_Var error_description_var) override; |
490 void DeliverBlock(PP_Instance instance, | 495 void DeliverBlock(PP_Instance instance, |
491 PP_Resource decrypted_block, | 496 PP_Resource decrypted_block, |
492 const PP_DecryptedBlockInfo* block_info) override; | 497 const PP_DecryptedBlockInfo* block_info) override; |
493 void DecoderInitializeDone(PP_Instance instance, | 498 void DecoderInitializeDone(PP_Instance instance, |
494 PP_DecryptorStreamType decoder_type, | 499 PP_DecryptorStreamType decoder_type, |
495 uint32_t request_id, | 500 uint32_t request_id, |
496 PP_Bool success) override; | 501 PP_Bool success) override; |
497 void DecoderDeinitializeDone(PP_Instance instance, | 502 void DecoderDeinitializeDone(PP_Instance instance, |
498 PP_DecryptorStreamType decoder_type, | 503 PP_DecryptorStreamType decoder_type, |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 // view change events. | 924 // view change events. |
920 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 925 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
921 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 926 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
922 | 927 |
923 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 928 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
924 }; | 929 }; |
925 | 930 |
926 } // namespace content | 931 } // namespace content |
927 | 932 |
928 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 933 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |