| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef GarbageCollectedScriptWrappable_h | 5 #ifndef GarbageCollectedScriptWrappable_h |
| 6 #define GarbageCollectedScriptWrappable_h | 6 #define GarbageCollectedScriptWrappable_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "platform/heap/Heap.h" | 9 #include "platform/heap/Heap.h" |
| 10 #include "wtf/PassRefPtr.h" | 10 #include "platform/wtf/PassRefPtr.h" |
| 11 #include "wtf/text/WTFString.h" | 11 #include "platform/wtf/text/WTFString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class GarbageCollectedScriptWrappable | 15 class GarbageCollectedScriptWrappable |
| 16 : public GarbageCollectedFinalized<GarbageCollectedScriptWrappable>, | 16 : public GarbageCollectedFinalized<GarbageCollectedScriptWrappable>, |
| 17 public ScriptWrappable { | 17 public ScriptWrappable { |
| 18 DEFINE_WRAPPERTYPEINFO(); | 18 DEFINE_WRAPPERTYPEINFO(); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 GarbageCollectedScriptWrappable(const String&); | 21 GarbageCollectedScriptWrappable(const String&); |
| 22 virtual ~GarbageCollectedScriptWrappable(); | 22 virtual ~GarbageCollectedScriptWrappable(); |
| 23 | 23 |
| 24 const String& toString() const { return string_; } | 24 const String& toString() const { return string_; } |
| 25 DEFINE_INLINE_VIRTUAL_TRACE() {} | 25 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 String string_; | 28 String string_; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace blink | 31 } // namespace blink |
| 32 | 32 |
| 33 #endif // GarbageCollectedScriptWrappable_h | 33 #endif // GarbageCollectedScriptWrappable_h |
| OLD | NEW |