summaryrefslogtreecommitdiffstats
path: root/WebCore/inspector/ScriptArguments.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-05 14:36:32 +0100
committerBen Murdoch <benm@google.com>2011-05-10 15:38:30 +0100
commitf05b935882198ccf7d81675736e3aeb089c5113a (patch)
tree4ea0ca838d9ef1b15cf17ddb3928efb427c7e5a1 /WebCore/inspector/ScriptArguments.h
parent60fbdcc62bced8db2cb1fd233cc4d1e4ea17db1b (diff)
downloadexternal_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.zip
external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.gz
external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.bz2
Merge WebKit at r74534: Initial merge by git.
Change-Id: I6ccd1154fa1b19c2ec2a66878eb675738735f1eb
Diffstat (limited to 'WebCore/inspector/ScriptArguments.h')
-rw-r--r--WebCore/inspector/ScriptArguments.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/WebCore/inspector/ScriptArguments.h b/WebCore/inspector/ScriptArguments.h
index fdf05ab..26549b6 100644
--- a/WebCore/inspector/ScriptArguments.h
+++ b/WebCore/inspector/ScriptArguments.h
@@ -33,15 +33,18 @@
#include "PlatformString.h"
#include "ScriptState.h"
+#include <wtf/Forward.h>
+#include <wtf/RefCounted.h>
#include <wtf/Vector.h>
namespace WebCore {
class ScriptValue;
-class ScriptArguments {
+class ScriptArguments : public RefCounted<ScriptArguments> {
public:
- ScriptArguments(ScriptState*, Vector<ScriptValue>& arguments);
+ static PassRefPtr<ScriptArguments> create(ScriptState*, Vector<ScriptValue>& arguments);
+
~ScriptArguments();
const ScriptValue& argumentAt(size_t) const;
@@ -53,6 +56,8 @@ public:
bool isEqual(ScriptArguments*) const;
private:
+ ScriptArguments(ScriptState*, Vector<ScriptValue>& arguments);
+
ScriptStateProtectedPtr m_scriptState;
Vector<ScriptValue> m_arguments;
};