OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "ppapi/shared_impl/instance_impl.h" | 29 #include "ppapi/shared_impl/instance_impl.h" |
30 #include "ppapi/shared_impl/ppp_instance_combined.h" | 30 #include "ppapi/shared_impl/ppp_instance_combined.h" |
31 #include "ppapi/thunk/ppb_instance_api.h" | 31 #include "ppapi/thunk/ppb_instance_api.h" |
32 #include "third_party/skia/include/core/SkBitmap.h" | 32 #include "third_party/skia/include/core/SkBitmap.h" |
33 #include "third_party/skia/include/core/SkRefCnt.h" | 33 #include "third_party/skia/include/core/SkRefCnt.h" |
34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" |
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
36 #include "ui/base/ime/text_input_type.h" | 36 #include "ui/base/ime/text_input_type.h" |
37 #include "ui/gfx/rect.h" | 37 #include "ui/gfx/rect.h" |
38 #include "webkit/plugins/ppapi/plugin_delegate.h" | 38 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 39 #include "webkit/plugins/webkit_plugins_export.h" |
39 | 40 |
40 struct PP_Var; | 41 struct PP_Var; |
41 struct PPP_Find_Dev; | 42 struct PPP_Find_Dev; |
42 struct PPP_InputEvent; | 43 struct PPP_InputEvent; |
43 struct PPP_Instance_Private; | 44 struct PPP_Instance_Private; |
44 struct PPP_Messaging; | 45 struct PPP_Messaging; |
45 struct PPP_MouseLock; | 46 struct PPP_MouseLock; |
46 struct PPP_Pdf; | 47 struct PPP_Pdf; |
47 struct PPP_Selection_Dev; | 48 struct PPP_Selection_Dev; |
48 struct PPP_Zoom_Dev; | 49 struct PPP_Zoom_Dev; |
(...skipping 25 matching lines...) Expand all Loading... |
74 class PPB_Graphics2D_Impl; | 75 class PPB_Graphics2D_Impl; |
75 class PPB_Graphics3D_Impl; | 76 class PPB_Graphics3D_Impl; |
76 class PPB_ImageData_Impl; | 77 class PPB_ImageData_Impl; |
77 class PPB_URLLoader_Impl; | 78 class PPB_URLLoader_Impl; |
78 class PPB_URLRequestInfo_Impl; | 79 class PPB_URLRequestInfo_Impl; |
79 | 80 |
80 // Represents one time a plugin appears on one web page. | 81 // Represents one time a plugin appears on one web page. |
81 // | 82 // |
82 // Note: to get from a PP_Instance to a PluginInstance*, use the | 83 // Note: to get from a PP_Instance to a PluginInstance*, use the |
83 // ResourceTracker. | 84 // ResourceTracker. |
84 class PluginInstance : public base::RefCounted<PluginInstance>, | 85 class WEBKIT_PLUGINS_EXPORT PluginInstance : |
85 public ::ppapi::FunctionGroupBase, | 86 public base::RefCounted<PluginInstance>, |
86 public ::ppapi::thunk::PPB_Instance_FunctionAPI, | 87 public ::ppapi::FunctionGroupBase, |
87 public ::ppapi::InstanceImpl { | 88 NON_EXPORTED_BASE(public ::ppapi::thunk::PPB_Instance_FunctionAPI), |
| 89 public ::ppapi::InstanceImpl { |
88 public: | 90 public: |
89 // Create and return a PluginInstance object which supports the | 91 // Create and return a PluginInstance object which supports the |
90 // PPP_Instance_1_0 interface. | 92 // PPP_Instance_1_0 interface. |
91 static PluginInstance* Create1_0(PluginDelegate* delegate, | 93 static PluginInstance* Create1_0(PluginDelegate* delegate, |
92 PluginModule* module, | 94 PluginModule* module, |
93 const void* ppp_instance_if_1_0); | 95 const void* ppp_instance_if_1_0); |
94 | 96 |
95 // Delete should be called by the WebPlugin before this destructor. | 97 // Delete should be called by the WebPlugin before this destructor. |
96 virtual ~PluginInstance(); | 98 virtual ~PluginInstance(); |
97 | 99 |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 | 608 |
607 PP_CompletionCallback lock_mouse_callback_; | 609 PP_CompletionCallback lock_mouse_callback_; |
608 | 610 |
609 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 611 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
610 }; | 612 }; |
611 | 613 |
612 } // namespace ppapi | 614 } // namespace ppapi |
613 } // namespace webkit | 615 } // namespace webkit |
614 | 616 |
615 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 617 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
OLD | NEW |