/external/chromium_org/content/test/plugin/ |
plugin_delete_plugin_in_deallocate_test.cc | 14 class DeletePluginInDeallocateTestNPObject : public NPObject { 17 : NPObject(), id_(NULL), host_functions_(NULL), deallocate_count_(0) {} 19 static NPObject* Allocate(NPP npp, NPClass* npclass) { 23 static void Deallocate(NPObject* npobject) { 25 reinterpret_cast<DeletePluginInDeallocateTestNPObject*>(npobject); 32 NPObject* window_obj = NULL; 90 // Create a custom NPObject and give our Id and the Netscape function table. 99 NPObject* window = NULL; 109 NPObject* func = NPVARIANT_TO_OBJECT(func_var) [all...] |
plugin_npobject_proxy_test.cc | 27 NPObject *window_obj = NULL; 31 NPObject *doc = NPVARIANT_TO_OBJECT(docv);
|
plugin_npobject_lifetime_test.h | 14 // The NPObjectLifeTime class tests the case where a plugin has an NPObject 16 // page and whether refcounts on this npobject are valid when the source frame 31 NPObject* other_plugin_instance_object_; 52 static NPObject* plugin_instance_object_; 70 NPObject* plugin_instance_object_;
|
/external/chromium_org/content/child/npapi/ |
np_channel_base.h | 28 struct hash<NPObject*> { 29 std::size_t operator()(NPObject* const& ptr) const { 46 inline size_t hash_value(NPObject* const& ptr) { 64 // npobject). These are also called by NPObjectProxy and NPObjectStub (which 65 // pass themselves for npobject). However the latter don't control the 66 // lifetime of this object because we don't want a leak of an NPObject to 68 void AddRoute(int route_id, IPC::Listener* listener, NPObjectBase* npobject); 71 void AddMappingForNPObjectProxy(int route_id, NPObject* object); 74 void AddMappingForNPObjectStub(int route_id, NPObject* object); 75 void RemoveMappingForNPObjectStub(int route_id, NPObject* object) [all...] |
webplugin.h | 22 struct NPObject; 55 // Returns the NPObject for the browser's window object. Does not 57 virtual NPObject* GetWindowScriptNPObject() = 0; 61 virtual NPObject* GetPluginElement() = 0;
|
npobject_proxy.cc | 21 NPObject object; 41 NPObjectProxy* NPObjectProxy::GetProxy(NPObject* object) { 53 NPObject* NPObjectProxy::GetUnderlyingNPObject() { 77 // same NPObject in the context of the outgoing NPObjectMsg_Release call. 86 NPObject* NPObjectProxy::Create(NPChannelBase* channel, 95 return reinterpret_cast<NPObject*>(obj); 106 NPObject* NPObjectProxy::NPAllocate(NPP, NPClass*) { 107 return reinterpret_cast<NPObject*>(new NPObjectWrapper); 110 void NPObjectProxy::NPDeallocate(NPObject* npObj) { 127 bool NPObjectProxy::NPHasMethod(NPObject *obj [all...] |
npobject_util.cc | 25 // NPObject. Plugins always ignore the functions in NPClass (except allocate 28 // When the renderer interacts with an NPObject from the plugin, it of course 31 NPObject *npobj, 36 static bool NPN_InvokePatch(NPP npp, NPObject *npobj, 46 NPObject *npobj, 55 NPObject *npobj, 61 NPObject *npobj, 68 NPObject *npobj, 75 NPObject *npobj, 81 NPObject *npobj [all...] |
webplugin_delegate.h | 19 struct NPObject; 79 // Gets the NPObject associated with the plugin for scripting. 80 virtual NPObject* GetPluginScriptableObject() = 0;
|
/external/chromium_org/content/renderer/pepper/ |
host_var_tracker_unittest.cc | 28 void TrackedClassDeallocate(NPObject* npobject) { 30 delete npobject; 37 // Returns a new tracked NPObject with a refcount of 1. You'll want to put this 39 NPObject* NewTrackedNPObject() { 40 NPObject* object = new NPObject; 49 void operator()(NPObject* o) const { blink::WebBindings::releaseObject(o); } 52 // Handles automatically releasing a reference to the NPObject on destruction. 54 typedef scoped_ptr<NPObject, ReleaseNPObject> NPObjectReleaser [all...] |
plugin_object.cc | 38 // NPObject implementation in terms of PPP_Class_Deprecated -------------------- 40 NPObject* WrapperClass_Allocate(NPP npp, NPClass* unused) { 44 void WrapperClass_Deallocate(NPObject* np_object) { 53 void WrapperClass_Invalidate(NPObject* object) {} 55 bool WrapperClass_HasMethod(NPObject* object, NPIdentifier method_name) { 70 bool WrapperClass_Invoke(NPObject* object, 97 bool WrapperClass_InvokeDefault(NPObject* np_object, 123 bool WrapperClass_HasProperty(NPObject* object, NPIdentifier property_name) { 138 bool WrapperClass_GetProperty(NPObject* object, 153 bool WrapperClass_SetProperty(NPObject* object [all...] |
message_channel.cc | 59 // NPObject*. 60 MessageChannel* ToMessageChannel(NPObject* object) { 65 NPObject* ToPassThroughObject(NPObject* object) { 75 bool HasDevChannelPermission(NPObject* channel_object) { 89 NPObject* MessageChannelAllocate(NPP npp, NPClass* the_class) { 93 void MessageChannelDeallocate(NPObject* object) { 99 bool MessageChannelHasMethod(NPObject* np_obj, NPIdentifier name) { 110 NPObject* passthrough = ToPassThroughObject(np_obj); 116 bool MessageChannelInvoke(NPObject* np_obj [all...] |
/external/chromium_org/third_party/WebKit/Source/bindings/v8/ |
ScriptController.h | 45 struct NPObject; 111 void bindToWindowObject(LocalFrame*, const String& key, NPObject*); 139 NPObject* createScriptObjectForPluginElement(HTMLPlugInElement*); 140 NPObject* windowScriptNPObject(); 155 typedef HashMap<Widget*, NPObject*> PluginObjectMap; 169 // The frame keeps a NPObject reference for each item on the list. 172 NPObject* m_windowScriptNPObject;
|
npruntime.cpp | 266 NPObject *_NPN_CreateObject(NPP npp, NPClass* npClass) 271 NPObject* npObject; 273 npObject = npClass->allocate(npp, npClass); 275 npObject = reinterpret_cast<NPObject*>(malloc(sizeof(NPObject))); 277 npObject->_class = npClass; 278 npObject->referenceCount = 1; 279 return npObject; [all...] |
/external/chromium_org/content/shell/tools/plugin/Tests/ |
NPDeallocateCalledBeforeNPShutdown.cpp | 67 NPObject* testObject = TestObject::create(pluginTest()); 89 *(NPObject**)value = ScriptableObject::create(this);
|
NPRuntimeObjectFromDestroyedPlugin.cpp | 74 NPObject* testObject = TestObject::create(pluginTest()); 85 *(NPObject**)value = ScriptableObject::create(this);
|
LeakWindowScriptableObject.cpp | 24 NPObject* window;
|
/external/chromium_org/third_party/WebKit/public/web/ |
WebPluginContainer.h | 36 struct NPObject; 81 virtual NPObject* scriptableObjectForElement() = 0;
|
/external/chromium_org/content/browser/android/java/ |
java_bridge_dispatcher_host_manager.h | 18 struct NPObject; 36 // Each one holds a reference to the NPObject while the object is bound to 38 void AddNamedObject(const base::string16& name, NPObject* object); 60 typedef std::map<base::string16, NPObject*> ObjectMap;
|
java_bound_object.h | 34 // to JavaScript. Returns an NPObject with a ref count of one which owns the 37 static NPObject* Create( 46 // wrapped as an NPObject. May return null if the underlying object has 49 NPObject* object); 51 // Methods to implement the NPObject callbacks.
|
java_bridge_dispatcher_host.cc | 63 NPObject* object) { 76 // original NPObject. 114 void JavaBridgeDispatcherHost::CreateNPVariantParam(NPObject* object, 138 void JavaBridgeDispatcherHost::CreateObjectStub(NPObject* object, 162 // The NPObjectStub takes a reference to the NPObject. Release the ref added
|
/external/chromium_org/content/shell/tools/plugin/ |
PluginObject.h | 42 NPObject header; 52 NPObject* testObject; 53 NPObject* rememberedObject;
|
PluginObject.cpp | 44 static void pluginLogWithWindowObject(NPObject* windowObject, 58 NPObject* consoleObject = NPVARIANT_TO_OBJECT(consoleVariant); 90 NPObject* windowObject = 0; 112 static void pluginInvalidate(NPObject*); 113 static bool pluginHasProperty(NPObject*, NPIdentifier name); 114 static bool pluginHasMethod(NPObject*, NPIdentifier name); 115 static bool pluginGetProperty(NPObject*, NPIdentifier name, NPVariant*); 116 static bool pluginSetProperty(NPObject*, NPIdentifier name, const NPVariant*); 117 static bool pluginInvoke(NPObject*, 122 static NPObject* pluginAllocate(NPP npp, NPClass*) [all...] |
PluginTest.cpp | 156 bool PluginTest::NPN_Invoke(NPObject* npobj, 190 NPObject* PluginTest::NPN_CreateObject(NPClass* npClass) { 194 NPObject* PluginTest::NPN_RetainObject(NPObject* npObject) { 195 return browser->retainobject(npObject); 198 void PluginTest::NPN_ReleaseObject(NPObject* npObject) { 199 browser->releaseobject(npObject); 202 bool PluginTest::NPN_GetProperty(NPObject* npObject [all...] |
/external/chromium_org/content/renderer/browser_plugin/ |
browser_plugin_bindings.cc | 42 BrowserPluginBindings* GetBindings(NPObject* object) { 79 NPObject* BrowserPluginBindingsAllocate(NPP npp, NPClass* the_class) { 83 void BrowserPluginBindingsDeallocate(NPObject* object) { 89 bool BrowserPluginBindingsHasMethod(NPObject* np_obj, NPIdentifier name) { 100 bool BrowserPluginBindingsInvoke(NPObject* np_obj, NPIdentifier name, 113 bool BrowserPluginBindingsInvokeDefault(NPObject* np_obj, 121 bool BrowserPluginBindingsHasProperty(NPObject* np_obj, NPIdentifier name) { 132 bool BrowserPluginBindingsGetProperty(NPObject* np_obj, NPIdentifier name, 149 bool BrowserPluginBindingsSetProperty(NPObject* np_obj, NPIdentifier name, 168 bool BrowserPluginBindingsEnumerate(NPObject *np_obj, NPIdentifier **value [all...] |
/external/chromium_org/third_party/npapi/bindings/ |
npfunctions.h | 101 typedef NPObject* (*NPN_CreateObjectProcPtr)(NPP npp, NPClass *aClass); 102 typedef NPObject* (*NPN_RetainObjectProcPtr)(NPObject *obj); 103 typedef void (*NPN_ReleaseObjectProcPtr)(NPObject *obj); 104 typedef bool (*NPN_InvokeProcPtr)(NPP npp, NPObject* obj, NPIdentifier methodName, const NPVariant *args, uint32_t argCount, NPVariant *result); 105 typedef bool (*NPN_InvokeDefaultProcPtr)(NPP npp, NPObject* obj, const NPVariant *args, uint32_t argCount, NPVariant *result); 106 typedef bool (*NPN_EvaluateProcPtr)(NPP npp, NPObject *obj, NPString *script, NPVariant *result); 107 typedef bool (*NPN_GetPropertyProcPtr)(NPP npp, NPObject *obj, NPIdentifier propertyName, NPVariant *result); 108 typedef bool (*NPN_SetPropertyProcPtr)(NPP npp, NPObject *obj, NPIdentifier propertyName, const NPVariant *value); 109 typedef bool (*NPN_RemovePropertyProcPtr)(NPP npp, NPObject *obj, NPIdentifier propertyName) [all...] |