blob: 6a0b5b411bd1cd145fe7e0e72729550380b310dd [file] [log] [blame]
// Copyright (c) 2011 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.
#include "chrome/renderer/static_v8_external_string_resource.h"
StaticV8ExternalAsciiStringResource::StaticV8ExternalAsciiStringResource(
const base::StringPiece& buffer)
: buffer_(buffer) {
}
const char* StaticV8ExternalAsciiStringResource::data() const {
return buffer_.data();
}
size_t StaticV8ExternalAsciiStringResource::length() const {
return buffer_.length();
}