Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: webkit/plugins/ppapi/npobject_var.h

Issue 7578001: Unify var tracking between webkit and the proxy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/npapi_glue.cc ('k') | webkit/plugins/ppapi/npobject_var.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_NPOBJECT_VAR_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_NPOBJECT_VAR_H_
6 #define WEBKIT_PLUGINS_PPAPI_NPOBJECT_VAR_H_ 6 #define WEBKIT_PLUGINS_PPAPI_NPOBJECT_VAR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 21 matching lines...) Expand all
32 // You should always use FromNPObject to create an NPObjectVar. This function 32 // You should always use FromNPObject to create an NPObjectVar. This function
33 // guarantees that we maintain the 1:1 mapping between NPObject and 33 // guarantees that we maintain the 1:1 mapping between NPObject and
34 // NPObjectVar. 34 // NPObjectVar.
35 NPObjectVar(PP_Module module, PP_Instance instance, NPObject* np_object); 35 NPObjectVar(PP_Module module, PP_Instance instance, NPObject* np_object);
36 36
37 virtual ~NPObjectVar(); 37 virtual ~NPObjectVar();
38 38
39 // Var overrides. 39 // Var overrides.
40 virtual NPObjectVar* AsNPObjectVar() OVERRIDE; 40 virtual NPObjectVar* AsNPObjectVar() OVERRIDE;
41 virtual PP_Var GetPPVar() OVERRIDE; 41 virtual PP_Var GetPPVar() OVERRIDE;
42 virtual PP_VarType GetType() const OVERRIDE;
42 43
43 // Returns the underlying NPObject corresponding to this NPObjectVar. 44 // Returns the underlying NPObject corresponding to this NPObjectVar.
44 // Guaranteed non-NULL. 45 // Guaranteed non-NULL.
45 NPObject* np_object() const { return np_object_; } 46 NPObject* np_object() const { return np_object_; }
46 47
47 // Notification that the instance was deleted, the internal reference will be 48 // Notification that the instance was deleted, the internal reference will be
48 // zeroed out. 49 // zeroed out.
49 void InstanceDeleted(); 50 void InstanceDeleted();
50 51
51 // Possibly 0 if the object has outlived its instance. 52 // Possibly 0 if the object has outlived its instance.
(...skipping 10 matching lines...) Expand all
62 // Guaranteed non-NULL, this is the underlying object used by WebKit. We 63 // Guaranteed non-NULL, this is the underlying object used by WebKit. We
63 // hold a reference to this object. 64 // hold a reference to this object.
64 NPObject* np_object_; 65 NPObject* np_object_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(NPObjectVar); 67 DISALLOW_COPY_AND_ASSIGN(NPObjectVar);
67 }; 68 };
68 69
69 } // namespace 70 } // namespace
70 71
71 #endif // WEBKIT_PLUGINS_PPAPI_NPOBJECT_VAR_H_ 72 #endif // WEBKIT_PLUGINS_PPAPI_NPOBJECT_VAR_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/npapi_glue.cc ('k') | webkit/plugins/ppapi/npobject_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698