blob: 9783ce2c7a383803de874da82b33221e43f1578f [file] [log] [blame]
// 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