| Index: Source/bindings/v8/ScriptString.h
|
| diff --git a/Source/core/platform/SerializedResource.h b/Source/bindings/v8/ScriptString.h
|
| similarity index 81%
|
| copy from Source/core/platform/SerializedResource.h
|
| copy to Source/bindings/v8/ScriptString.h
|
| index 76fd022cd596ce5339cf92d1d20761ed0ed411d9..14467c7eb9feb0e4c7780ef86d013820b5f2174f 100644
|
| --- a/Source/core/platform/SerializedResource.h
|
| +++ b/Source/bindings/v8/ScriptString.h
|
| @@ -28,29 +28,24 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef SerializedResource_h
|
| -#define SerializedResource_h
|
| +#ifndef ScriptString_h
|
| +#define ScriptString_h
|
|
|
| -#include "core/platform/SharedBuffer.h"
|
| -#include "weborigin/KURL.h"
|
| +#include "bindings/v8/ScriptValue.h"
|
| +#include "bindings/v8/V8Binding.h"
|
| #include "wtf/text/WTFString.h"
|
|
|
| namespace WebCore {
|
|
|
| -struct SerializedResource {
|
| - KURL url;
|
| - String mimeType;
|
| - RefPtr<SharedBuffer> data;
|
| +class ScriptString : public ScriptValue {
|
| +public:
|
| + ScriptString() { }
|
| + explicit ScriptString(v8::Handle<v8::String> value) : ScriptValue(value) { }
|
|
|
| - SerializedResource(const KURL& url, const String& mimeType, PassRefPtr<SharedBuffer> data)
|
| - : url(url)
|
| - , mimeType(mimeType)
|
| - , data(data)
|
| - {
|
| - }
|
| + ScriptString concatenateWith(const String&);
|
| + String flattenToString() const;
|
| };
|
|
|
| -}
|
| -
|
| -#endif // SerializedResource_h
|
| +} // namespace WebCore
|
|
|
| +#endif // ScriptString_h
|
|
|