Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / testing / GarbageCollectedScriptWrappable.h
blob8b88a1921ac5dfad1d4ffe769d1a8920c9c23c45
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"
13 namespace blink {
15 class GarbageCollectedScriptWrappable : public GarbageCollectedFinalized<GarbageCollectedScriptWrappable>, public ScriptWrappable {
16 DEFINE_WRAPPERTYPEINFO();
17 public:
18 GarbageCollectedScriptWrappable(const String&);
19 virtual ~GarbageCollectedScriptWrappable();
21 const String& toString() const { return m_string; }
22 DEFINE_INLINE_VIRTUAL_TRACE() { }
24 private:
25 String m_string;
28 } // namespace blink
30 #endif // GarbageCollectedScriptWrappable_h