| 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 16 matching lines...) Expand all Loading... |
| 27 #include "third_party/skia/include/core/SkBitmap.h" | 27 #include "third_party/skia/include/core/SkBitmap.h" |
| 28 #include "third_party/skia/include/core/SkRefCnt.h" | 28 #include "third_party/skia/include/core/SkRefCnt.h" |
| 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCanvas.h" |
| 30 #include "ui/gfx/rect.h" | 30 #include "ui/gfx/rect.h" |
| 31 #include "webkit/plugins/ppapi/plugin_delegate.h" | 31 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 32 | 32 |
| 33 typedef struct NPObject NPObject; | 33 typedef struct NPObject NPObject; |
| 34 struct PP_Var; | 34 struct PP_Var; |
| 35 struct PPB_Instance; | 35 struct PPB_Instance; |
| 36 struct PPB_Instance_Private; | 36 struct PPB_Instance_Private; |
| 37 struct PPB_Find_Dev; |
| 37 struct PPB_Fullscreen_Dev; | 38 struct PPB_Fullscreen_Dev; |
| 38 struct PPB_Messaging; | 39 struct PPB_Messaging; |
| 39 struct PPB_Zoom_Dev; | 40 struct PPB_Zoom_Dev; |
| 40 struct PPP_Find_Dev; | 41 struct PPP_Find_Dev; |
| 41 struct PPP_Instance_Private; | 42 struct PPP_Instance_Private; |
| 42 struct PPP_Messaging; | 43 struct PPP_Messaging; |
| 43 struct PPP_Pdf; | 44 struct PPP_Pdf; |
| 44 struct PPP_Selection_Dev; | 45 struct PPP_Selection_Dev; |
| 45 struct PPP_Zoom_Dev; | 46 struct PPP_Zoom_Dev; |
| 46 | 47 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 ~PluginInstance(); | 90 ~PluginInstance(); |
| 90 | 91 |
| 91 // Return a PPB_Instance interface compatible with the given interface name, | 92 // Return a PPB_Instance interface compatible with the given interface name, |
| 92 // if one is available. Returns NULL if the requested interface is | 93 // if one is available. Returns NULL if the requested interface is |
| 93 // not supported. | 94 // not supported. |
| 94 static const void* GetInterface(const char* if_name); | 95 static const void* GetInterface(const char* if_name); |
| 95 static const PPB_Instance_Private* GetPrivateInterface(); | 96 static const PPB_Instance_Private* GetPrivateInterface(); |
| 96 | 97 |
| 97 // Returns a pointer to the interface implementing PPB_Find that is | 98 // Returns a pointer to the interface implementing PPB_Find that is |
| 98 // exposed to the plugin. | 99 // exposed to the plugin. |
| 100 static const PPB_Find_Dev* GetFindInterface(); |
| 99 static const PPB_Fullscreen_Dev* GetFullscreenInterface(); | 101 static const PPB_Fullscreen_Dev* GetFullscreenInterface(); |
| 100 static const PPB_Messaging* GetMessagingInterface(); | 102 static const PPB_Messaging* GetMessagingInterface(); |
| 101 static const PPB_Zoom_Dev* GetZoomInterface(); | 103 static const PPB_Zoom_Dev* GetZoomInterface(); |
| 102 | 104 |
| 103 PluginDelegate* delegate() const { return delegate_; } | 105 PluginDelegate* delegate() const { return delegate_; } |
| 104 PluginModule* module() const { return module_.get(); } | 106 PluginModule* module() const { return module_.get(); } |
| 105 MessageChannel& message_channel() { return *message_channel_; } | 107 MessageChannel& message_channel() { return *message_channel_; } |
| 106 | 108 |
| 107 WebKit::WebPluginContainer* container() const { return container_; } | 109 WebKit::WebPluginContainer* container() const { return container_; } |
| 108 | 110 |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; | 479 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; |
| 478 NPObjectToObjectVarMap np_object_to_object_var_; | 480 NPObjectToObjectVarMap np_object_to_object_var_; |
| 479 | 481 |
| 480 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 482 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 481 }; | 483 }; |
| 482 | 484 |
| 483 } // namespace ppapi | 485 } // namespace ppapi |
| 484 } // namespace webkit | 486 } // namespace webkit |
| 485 | 487 |
| 486 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 488 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |