summaryrefslogtreecommitdiffstats
path: root/webkit/port/bindings/v8/ScriptController.h
diff options
context:
space:
mode:
authorojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 23:07:39 +0000
committerojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-03 23:07:39 +0000
commit2012dc919c070d111e15212b30363191baec0946 (patch)
tree2f2e0bd2e6dfb8601fcce5f4e83da3e186fe037c /webkit/port/bindings/v8/ScriptController.h
parent9da4a5aeeb2efb12cd4707fdb5333ee9cc1419c6 (diff)
downloadchromium_src-2012dc919c070d111e15212b30363191baec0946.zip
chromium_src-2012dc919c070d111e15212b30363191baec0946.tar.gz
chromium_src-2012dc919c070d111e15212b30363191baec0946.tar.bz2
src/webkit side of webkit merge 38760:38800
Review URL: http://codereview.chromium.org/13034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/bindings/v8/ScriptController.h')
-rw-r--r--webkit/port/bindings/v8/ScriptController.h23
1 files changed, 2 insertions, 21 deletions
diff --git a/webkit/port/bindings/v8/ScriptController.h b/webkit/port/bindings/v8/ScriptController.h
index c7daeb8..00c6e0c 100644
--- a/webkit/port/bindings/v8/ScriptController.h
+++ b/webkit/port/bindings/v8/ScriptController.h
@@ -35,6 +35,7 @@
#include "HashMap.h"
#include "MessagePort.h"
+#include "ScriptInstance.h"
#include "ScriptValue.h"
#include "SecurityOrigin.h"
@@ -164,7 +165,7 @@ public:
NPRuntimeFunctions* functions();
- JSInstanceHandle createScriptInstanceForWidget(Widget*);
+ PassScriptInstance createScriptInstanceForWidget(Widget*);
void clearPluginObjects();
void disconnectFrame();
@@ -281,26 +282,6 @@ private:
#endif
};
-// JSInstance is an abstraction for a wrapped C class. JSC and V8
-// have very different implementations.
-class JSInstanceHolder {
-public:
- JSInstanceHolder();
- JSInstanceHolder(JSInstanceHandle);
- ~JSInstanceHolder();
- // Returns true if the holder is empty.
- bool IsEmpty();
- // Get the contained JSInstance.
- JSInstance Get();
- // Clear the contained JSInstance.
- void Clear();
- JSInstanceHolder& operator=(JSInstanceHandle);
- static JSInstance EmptyInstance();
-
-private:
- JSPersistentInstance m_instance;
-};
-
} // namespace WebCore
#endif // ScriptController_h