| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef GarbageCollectedScriptWrappable_h |
| #define GarbageCollectedScriptWrappable_h |
| |
| #include "base/memory/scoped_refptr.h" |
| #include "platform/bindings/ScriptWrappable.h" |
| #include "platform/heap/Heap.h" |
| #include "platform/wtf/text/WTFString.h" |
| |
| namespace blink { |
| |
| class GarbageCollectedScriptWrappable : public ScriptWrappable { |
| DEFINE_WRAPPERTYPEINFO(); |
| |
| public: |
| GarbageCollectedScriptWrappable(const String&); |
| virtual ~GarbageCollectedScriptWrappable(); |
| |
| const String& toString() const { return string_; } |
| |
| private: |
| String string_; |
| }; |
| |
| } // namespace blink |
| |
| #endif // GarbageCollectedScriptWrappable_h |