| 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 <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "base/strings/string16.h" | 18 #include "base/strings/string16.h" |
| 19 #include "cc/layers/content_layer_client.h" | 19 #include "cc/layers/content_layer_client.h" |
| 20 #include "cc/layers/texture_layer_client.h" | 20 #include "cc/layers/texture_layer_client.h" |
| 21 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
| 22 #include "content/public/renderer/pepper_plugin_instance.h" | 22 #include "content/public/renderer/pepper_plugin_instance.h" |
| 23 #include "content/public/renderer/render_frame_observer.h" | 23 #include "content/public/renderer/render_frame_observer.h" |
| 24 #include "content/renderer/mouse_lock_dispatcher.h" | 24 #include "content/renderer/mouse_lock_dispatcher.h" |
| 25 #include "ppapi/c/dev/pp_cursor_type_dev.h" | 25 #include "ppapi/c/dev/pp_cursor_type_dev.h" |
| 26 #include "ppapi/c/dev/ppp_find_dev.h" | |
| 27 #include "ppapi/c/dev/ppp_printing_dev.h" | 26 #include "ppapi/c/dev/ppp_printing_dev.h" |
| 28 #include "ppapi/c/dev/ppp_selection_dev.h" | 27 #include "ppapi/c/dev/ppp_selection_dev.h" |
| 29 #include "ppapi/c/dev/ppp_text_input_dev.h" | 28 #include "ppapi/c/dev/ppp_text_input_dev.h" |
| 30 #include "ppapi/c/dev/ppp_zoom_dev.h" | 29 #include "ppapi/c/dev/ppp_zoom_dev.h" |
| 31 #include "ppapi/c/pp_completion_callback.h" | 30 #include "ppapi/c/pp_completion_callback.h" |
| 32 #include "ppapi/c/pp_instance.h" | 31 #include "ppapi/c/pp_instance.h" |
| 33 #include "ppapi/c/pp_time.h" | 32 #include "ppapi/c/pp_time.h" |
| 34 #include "ppapi/c/pp_var.h" | 33 #include "ppapi/c/pp_var.h" |
| 35 #include "ppapi/c/ppb_audio_config.h" | 34 #include "ppapi/c/ppb_audio_config.h" |
| 36 #include "ppapi/c/ppb_gamepad.h" | 35 #include "ppapi/c/ppb_gamepad.h" |
| 37 #include "ppapi/c/ppb_input_event.h" | 36 #include "ppapi/c/ppb_input_event.h" |
| 38 #include "ppapi/c/ppp_graphics_3d.h" | 37 #include "ppapi/c/ppp_graphics_3d.h" |
| 39 #include "ppapi/c/ppp_input_event.h" | 38 #include "ppapi/c/ppp_input_event.h" |
| 40 #include "ppapi/c/ppp_messaging.h" | 39 #include "ppapi/c/ppp_messaging.h" |
| 41 #include "ppapi/c/ppp_mouse_lock.h" | 40 #include "ppapi/c/ppp_mouse_lock.h" |
| 42 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 41 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
| 42 #include "ppapi/c/private/ppp_find_private.h" |
| 43 #include "ppapi/c/private/ppp_instance_private.h" | 43 #include "ppapi/c/private/ppp_instance_private.h" |
| 44 #include "ppapi/c/private/ppp_pdf.h" | 44 #include "ppapi/c/private/ppp_pdf.h" |
| 45 #include "ppapi/shared_impl/ppb_instance_shared.h" | 45 #include "ppapi/shared_impl/ppb_instance_shared.h" |
| 46 #include "ppapi/shared_impl/ppb_view_shared.h" | 46 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 47 #include "ppapi/shared_impl/singleton_resource_id.h" | 47 #include "ppapi/shared_impl/singleton_resource_id.h" |
| 48 #include "ppapi/shared_impl/tracked_callback.h" | 48 #include "ppapi/shared_impl/tracked_callback.h" |
| 49 #include "ppapi/thunk/ppb_gamepad_api.h" | 49 #include "ppapi/thunk/ppb_gamepad_api.h" |
| 50 #include "ppapi/thunk/resource_creation_api.h" | 50 #include "ppapi/thunk/resource_creation_api.h" |
| 51 #include "skia/ext/refptr.h" | 51 #include "skia/ext/refptr.h" |
| 52 #include "third_party/WebKit/public/platform/WebCanvas.h" | 52 #include "third_party/WebKit/public/platform/WebCanvas.h" |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 bool has_content_area_focus_; | 711 bool has_content_area_focus_; |
| 712 | 712 |
| 713 // The id of the current find operation, or -1 if none is in process. | 713 // The id of the current find operation, or -1 if none is in process. |
| 714 int find_identifier_; | 714 int find_identifier_; |
| 715 | 715 |
| 716 // Helper object that creates resources. | 716 // Helper object that creates resources. |
| 717 scoped_ptr<ppapi::thunk::ResourceCreationAPI> resource_creation_; | 717 scoped_ptr<ppapi::thunk::ResourceCreationAPI> resource_creation_; |
| 718 | 718 |
| 719 // The plugin-provided interfaces. | 719 // The plugin-provided interfaces. |
| 720 // When adding PPP interfaces, make sure to reset them in ResetAsProxied. | 720 // When adding PPP interfaces, make sure to reset them in ResetAsProxied. |
| 721 const PPP_Find_Dev* plugin_find_interface_; | 721 const PPP_Find_Private* plugin_find_interface_; |
| 722 const PPP_InputEvent* plugin_input_event_interface_; | 722 const PPP_InputEvent* plugin_input_event_interface_; |
| 723 const PPP_Messaging* plugin_messaging_interface_; | 723 const PPP_Messaging* plugin_messaging_interface_; |
| 724 const PPP_MouseLock* plugin_mouse_lock_interface_; | 724 const PPP_MouseLock* plugin_mouse_lock_interface_; |
| 725 const PPP_Pdf* plugin_pdf_interface_; | 725 const PPP_Pdf* plugin_pdf_interface_; |
| 726 const PPP_Instance_Private* plugin_private_interface_; | 726 const PPP_Instance_Private* plugin_private_interface_; |
| 727 const PPP_Selection_Dev* plugin_selection_interface_; | 727 const PPP_Selection_Dev* plugin_selection_interface_; |
| 728 const PPP_TextInput_Dev* plugin_textinput_interface_; | 728 const PPP_TextInput_Dev* plugin_textinput_interface_; |
| 729 const PPP_Zoom_Dev* plugin_zoom_interface_; | 729 const PPP_Zoom_Dev* plugin_zoom_interface_; |
| 730 | 730 |
| 731 // Flags indicating whether we have asked this plugin instance for the | 731 // Flags indicating whether we have asked this plugin instance for the |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 881 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
| 882 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 882 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
| 883 | 883 |
| 884 friend class PpapiPluginInstanceTest; | 884 friend class PpapiPluginInstanceTest; |
| 885 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 885 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 886 }; | 886 }; |
| 887 | 887 |
| 888 } // namespace content | 888 } // namespace content |
| 889 | 889 |
| 890 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 890 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |