#ifndef CHROME_RENDERER_EXTENSIONS_STATIC_V8_EXTERNAL_STRING_RESOURCE_H_
#define CHROME_RENDERER_EXTENSIONS_STATIC_V8_EXTERNAL_STRING_RESOURCE_H_
#include "base/compiler_specific.h"
#include "base/strings/string_piece.h"
#include "v8/include/v8.h"
class StaticV8ExternalAsciiStringResource
: public v8::String::ExternalAsciiStringResource {
public:
explicit StaticV8ExternalAsciiStringResource(const base::StringPiece& buffer);
virtual ~StaticV8ExternalAsciiStringResource();
virtual const char* data() const OVERRIDE;
virtual size_t length() const OVERRIDE;
private:
base::StringPiece buffer_;
};
#endif