| 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 WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
| 18 #include "cc/layers/texture_layer_client.h" | 18 #include "cc/layers/texture_layer_client.h" |
| 19 #include "ppapi/c/dev/pp_cursor_type_dev.h" | 19 #include "ppapi/c/dev/pp_cursor_type_dev.h" |
| 20 #include "ppapi/c/dev/ppp_find_dev.h" | 20 #include "ppapi/c/dev/ppp_find_dev.h" |
| 21 #include "ppapi/c/dev/ppp_printing_dev.h" | 21 #include "ppapi/c/dev/ppp_printing_dev.h" |
| 22 #include "ppapi/c/dev/ppp_selection_dev.h" | 22 #include "ppapi/c/dev/ppp_selection_dev.h" |
| 23 #include "ppapi/c/dev/ppp_text_input_dev.h" | |
| 24 #include "ppapi/c/dev/ppp_zoom_dev.h" | 23 #include "ppapi/c/dev/ppp_zoom_dev.h" |
| 25 #include "ppapi/c/pp_completion_callback.h" | 24 #include "ppapi/c/pp_completion_callback.h" |
| 26 #include "ppapi/c/pp_instance.h" | 25 #include "ppapi/c/pp_instance.h" |
| 27 #include "ppapi/c/pp_resource.h" | 26 #include "ppapi/c/pp_resource.h" |
| 28 #include "ppapi/c/pp_time.h" | 27 #include "ppapi/c/pp_time.h" |
| 29 #include "ppapi/c/pp_var.h" | 28 #include "ppapi/c/pp_var.h" |
| 30 #include "ppapi/c/ppb_audio_config.h" | 29 #include "ppapi/c/ppb_audio_config.h" |
| 31 #include "ppapi/c/ppb_gamepad.h" | 30 #include "ppapi/c/ppb_gamepad.h" |
| 32 #include "ppapi/c/ppb_input_event.h" | 31 #include "ppapi/c/ppb_input_event.h" |
| 33 #include "ppapi/c/ppp_graphics_3d.h" | 32 #include "ppapi/c/ppp_graphics_3d.h" |
| 34 #include "ppapi/c/ppp_input_event.h" | 33 #include "ppapi/c/ppp_input_event.h" |
| 35 #include "ppapi/c/ppp_messaging.h" | 34 #include "ppapi/c/ppp_messaging.h" |
| 36 #include "ppapi/c/ppp_mouse_lock.h" | 35 #include "ppapi/c/ppp_mouse_lock.h" |
| 36 #include "ppapi/c/ppp_text_input.h" |
| 37 #include "ppapi/c/private/ppb_content_decryptor_private.h" | 37 #include "ppapi/c/private/ppb_content_decryptor_private.h" |
| 38 #include "ppapi/c/private/ppb_nacl_private.h" | 38 #include "ppapi/c/private/ppb_nacl_private.h" |
| 39 #include "ppapi/c/private/ppp_instance_private.h" | 39 #include "ppapi/c/private/ppp_instance_private.h" |
| 40 #include "ppapi/shared_impl/ppb_instance_shared.h" | 40 #include "ppapi/shared_impl/ppb_instance_shared.h" |
| 41 #include "ppapi/shared_impl/ppb_view_shared.h" | 41 #include "ppapi/shared_impl/ppb_view_shared.h" |
| 42 #include "ppapi/shared_impl/singleton_resource_id.h" | 42 #include "ppapi/shared_impl/singleton_resource_id.h" |
| 43 #include "ppapi/shared_impl/tracked_callback.h" | 43 #include "ppapi/shared_impl/tracked_callback.h" |
| 44 #include "ppapi/thunk/ppb_gamepad_api.h" | 44 #include "ppapi/thunk/ppb_gamepad_api.h" |
| 45 #include "ppapi/thunk/resource_creation_api.h" | 45 #include "ppapi/thunk/resource_creation_api.h" |
| 46 #include "skia/ext/refptr.h" | 46 #include "skia/ext/refptr.h" |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 | 701 |
| 702 // The plugin-provided interfaces. | 702 // The plugin-provided interfaces. |
| 703 // When adding PPP interfaces, make sure to reset them in ResetAsProxied. | 703 // When adding PPP interfaces, make sure to reset them in ResetAsProxied. |
| 704 const PPP_Find_Dev* plugin_find_interface_; | 704 const PPP_Find_Dev* plugin_find_interface_; |
| 705 const PPP_InputEvent* plugin_input_event_interface_; | 705 const PPP_InputEvent* plugin_input_event_interface_; |
| 706 const PPP_Messaging* plugin_messaging_interface_; | 706 const PPP_Messaging* plugin_messaging_interface_; |
| 707 const PPP_MouseLock* plugin_mouse_lock_interface_; | 707 const PPP_MouseLock* plugin_mouse_lock_interface_; |
| 708 const PPP_Pdf* plugin_pdf_interface_; | 708 const PPP_Pdf* plugin_pdf_interface_; |
| 709 const PPP_Instance_Private* plugin_private_interface_; | 709 const PPP_Instance_Private* plugin_private_interface_; |
| 710 const PPP_Selection_Dev* plugin_selection_interface_; | 710 const PPP_Selection_Dev* plugin_selection_interface_; |
| 711 const PPP_TextInput_Dev* plugin_textinput_interface_; | 711 const PPP_TextInput* plugin_textinput_interface_; |
| 712 const PPP_Zoom_Dev* plugin_zoom_interface_; | 712 const PPP_Zoom_Dev* plugin_zoom_interface_; |
| 713 | 713 |
| 714 // Flags indicating whether we have asked this plugin instance for the | 714 // Flags indicating whether we have asked this plugin instance for the |
| 715 // corresponding interfaces, so that we can ask only once. | 715 // corresponding interfaces, so that we can ask only once. |
| 716 // When adding flags, make sure to reset them in ResetAsProxied. | 716 // When adding flags, make sure to reset them in ResetAsProxied. |
| 717 bool checked_for_plugin_input_event_interface_; | 717 bool checked_for_plugin_input_event_interface_; |
| 718 bool checked_for_plugin_messaging_interface_; | 718 bool checked_for_plugin_messaging_interface_; |
| 719 bool checked_for_plugin_pdf_interface_; | 719 bool checked_for_plugin_pdf_interface_; |
| 720 | 720 |
| 721 // This is only valid between a successful PrintBegin call and a PrintEnd | 721 // This is only valid between a successful PrintBegin call and a PrintEnd |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 v8::Isolate* isolate_; | 846 v8::Isolate* isolate_; |
| 847 | 847 |
| 848 friend class PpapiPluginInstanceTest; | 848 friend class PpapiPluginInstanceTest; |
| 849 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 849 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 850 }; | 850 }; |
| 851 | 851 |
| 852 } // namespace ppapi | 852 } // namespace ppapi |
| 853 } // namespace webkit | 853 } // namespace webkit |
| 854 | 854 |
| 855 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 855 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |