1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef GarbageCollectedScriptWrappable_h
6 #define GarbageCollectedScriptWrappable_h
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "platform/heap/Heap.h"
10 #include "wtf/PassRefPtr.h"
11 #include "wtf/text/WTFString.h"
15 class GarbageCollectedScriptWrappable
: public GarbageCollectedFinalized
<GarbageCollectedScriptWrappable
>, public ScriptWrappable
{
16 DEFINE_WRAPPERTYPEINFO();
18 GarbageCollectedScriptWrappable(const String
&);
19 virtual ~GarbageCollectedScriptWrappable();
21 const String
& toString() const { return m_string
; }
22 DEFINE_INLINE_VIRTUAL_TRACE() { }
30 #endif // GarbageCollectedScriptWrappable_h