summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/var.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/cpp/var.h')
-rw-r--r--ppapi/cpp/var.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ppapi/cpp/var.h b/ppapi/cpp/var.h
index 9109fef..0fdd5f5 100644
--- a/ppapi/cpp/var.h
+++ b/ppapi/cpp/var.h
@@ -8,10 +8,13 @@
#include <string>
#include <vector>
+#include "ppapi/c/pp_module.h"
#include "ppapi/c/pp_var.h"
namespace pp {
+class Instance;
+
namespace deprecated {
class ScriptableObject;
}
@@ -49,7 +52,14 @@ class Var {
}
// Takes ownership of the given pointer.
- Var(deprecated::ScriptableObject* object);
+ Var(Instance* instance, deprecated::ScriptableObject* object);
+
+ // TODO(brettw) erase this! This is a temporary hack to keep the build
+ // going while we land the nacl side of this change. Calling this function
+ // will crash rather than break the compile.
+ Var(deprecated::ScriptableObject* /* object */) {
+ *(int*)0 = 3;
+ }
Var(const Var& other);