HomeSort by relevance Sort by last modified time
    Searched refs:npobject (Results 1 - 11 of 11) sorted by null

  /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...]
  /external/chromium_org/content/test/plugin/
plugin_npobject_identity_test.cc 12 class NPThingy : public NPObject {
14 NPThingy() : NPObject() {}
16 static NPObject* Allocate(NPP npp, NPClass* npclass) {
20 static void Deallocate(NPObject* npobject) {
21 delete static_cast<NPThingy*>(npobject);
62 NPObject* window;
66 NPObject* func = NPVARIANT_TO_OBJECT(func_var);
68 // Create a custom NPObject and pass it in both arguments to areTheseTheSame.
69 NPObject* thingy = HostFunctions()->createobject(id(), GetNPThingyClass())
    [all...]
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...]
  /external/chromium_org/content/renderer/npapi/
plugin_channel_host.cc 96 NPObjectBase* npobject) {
97 NPChannelBase::AddRoute(route_id, listener, npobject);
99 if (!npobject)
plugin_channel_host.h 35 NPObjectBase* npobject);
webplugin_delegate_proxy.cc 729 NPObject* WebPluginDelegateProxy::GetPluginScriptableObject() {
964 NPObject* npobject = NULL; local
985 NPObject* npobject = NULL; local
    [all...]
  /external/chromium_org/third_party/WebKit/Source/bindings/v8/
V8NPUtils.cpp 46 void convertV8ObjectToNPVariant(v8::Local<v8::Value> object, NPObject* owner, NPVariant* result, v8::Isolate* isolate)
73 NPObject* npobject = npCreateV8ScriptObject(0, v8::Handle<v8::Object>::Cast(object), window, isolate); local
74 if (npobject)
75 _NPN_RegisterObject(npobject, owner);
76 OBJECT_TO_NPVARIANT(npobject, *result);
80 v8::Handle<v8::Value> convertNPVariantToV8Object(const NPVariant* variant, NPObject* owner, v8::Isolate* isolate)
100 NPObject* object = NPVARIANT_TO_OBJECT(*variant);
  /external/chromium_org/content/child/npapi/
npobject_stub.h 6 // NPObject.
20 struct NPObject;
27 // This wraps an NPObject and converts IPC messages from NPObjectProxy to calls
35 NPObjectStub(NPObject* npobject,
42 // Schedules tear-down of this stub. The underlying NPObject reference is
53 virtual NPObject* GetUnderlyingNPObject() OVERRIDE;
88 NPObject* npobject_;
np_channel_base.cc 250 NPObjectBase* npobject) {
251 if (npobject) {
252 npobject_listeners_[route_id] = npobject;
265 // This was an NPObject proxy or stub, it's not involved in the refcounting.
267 // If this RemoveRoute call from the NPObject is a result of us calling
328 NPObject* object) {
337 NPObject* object) {
343 NPObject* object) {
366 NPObject* NPChannelBase::GetExistingNPObjectProxy(int route_id) {
371 int NPChannelBase::GetExistingRouteForNPObjectStub(NPObject* npobject)
    [all...]
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...]
npobject_stub.cc 26 NPObject* npobject,
31 : npobject_(npobject),
36 channel_->AddMappingForNPObjectStub(route_id, npobject);
55 NPObject* npobject = npobject_; local
58 WebBindings::releaseObject(npobject);
68 NPObject* NPObjectStub::GetUnderlyingNPObject() {
121 // If we're in the plugin process, then the stub is holding onto an NPObject

Completed in 162 milliseconds