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

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

Issue 8930010: Implement in-process PPB_VarArrayBuffer_Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years 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 20 matching lines...) Expand all
31 public: 31 public:
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_Instance instance, NPObject* np_object); 35 NPObjectVar(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;
42 virtual PP_VarType GetType() const OVERRIDE; 41 virtual PP_VarType GetType() const OVERRIDE;
43 42
44 // Returns the underlying NPObject corresponding to this NPObjectVar. 43 // Returns the underlying NPObject corresponding to this NPObjectVar.
45 // Guaranteed non-NULL. 44 // Guaranteed non-NULL.
46 NPObject* np_object() const { return np_object_; } 45 NPObject* np_object() const { return np_object_; }
47 46
48 // Notification that the instance was deleted, the internal reference will be 47 // Notification that the instance was deleted, the internal reference will be
49 // zeroed out. 48 // zeroed out.
50 void InstanceDeleted(); 49 void InstanceDeleted();
51 50
(...skipping 11 matching lines...) Expand all
63 // Guaranteed non-NULL, this is the underlying object used by WebKit. We 62 // Guaranteed non-NULL, this is the underlying object used by WebKit. We
64 // hold a reference to this object. 63 // hold a reference to this object.
65 NPObject* np_object_; 64 NPObject* np_object_;
66 65
67 DISALLOW_COPY_AND_ASSIGN(NPObjectVar); 66 DISALLOW_COPY_AND_ASSIGN(NPObjectVar);
68 }; 67 };
69 68
70 } // namespace 69 } // namespace
71 70
72 #endif // WEBKIT_PLUGINS_PPAPI_NPOBJECT_VAR_H_ 71 #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