Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / v8 / ScriptFunctionCall.h
index 032b6a0..c35d5f0 100644 (file)
@@ -38,7 +38,6 @@
 
 namespace WebCore {
     class ScriptValue;
-    class ScriptState;
 
     class ScriptCallArgumentHandler {
     public:
@@ -50,13 +49,14 @@ namespace WebCore {
         void appendArgument(const char*);
         void appendArgument(long);
         void appendArgument(long long);
-        void appendArgument(unsigned int);
+        void appendArgument(unsigned);
         void appendArgument(unsigned long);
         void appendArgument(int);
         void appendArgument(bool);
+        void appendArgument(const Vector<ScriptValue>&);
 
     protected:
-        ScriptState* m_scriptState;
+        RefPtr<ScriptState> m_scriptState;
         Vector<ScriptValue> m_arguments;
     };
 
@@ -72,17 +72,6 @@ namespace WebCore {
         String m_name;
     };
 
-    class ScriptCallback : public ScriptCallArgumentHandler {
-    public:
-        ScriptCallback(ScriptState*, const ScriptValue&);
-
-        ScriptValue call();
-
-    private:
-        ScriptState* m_scriptState;
-        ScriptValue m_function;
-    };
-
 } // namespace WebCore
 
 #endif // ScriptFunctionCall