root/chrome/renderer/static_v8_external_string_resource.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. data
  2. length

// 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) {
}

StaticV8ExternalAsciiStringResource::~StaticV8ExternalAsciiStringResource() {
}

const char* StaticV8ExternalAsciiStringResource::data() const {
  return buffer_.data();
}

size_t StaticV8ExternalAsciiStringResource::length() const {
  return buffer_.length();
}

/* [<][>][^][v][top][bottom][index][help] */