blob: 4395ffc0a715b7ddbe52d2870975d2b65c8c3db3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 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();
}
|