Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / testing / RefCountedScriptWrappable.cpp
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.
4
5 #include "config.h"
6 #include "core/testing/RefCountedScriptWrappable.h"
7
8 namespace blink {
9
10 RefCountedScriptWrappable::RefCountedScriptWrappable(const String& string)
11     : m_string(string)
12 {
13     ScriptWrappable::init(this);
14 }
15
16 RefCountedScriptWrappable::~RefCountedScriptWrappable()
17 {
18 }
19
20 PassRefPtr<RefCountedScriptWrappable> RefCountedScriptWrappable::create(const String& string)
21 {
22     return adoptRef(new RefCountedScriptWrappable(string));
23 }
24
25 } // namespace blink
26