Added documentation to web_view.js/web_view_experimental.js regarding the webview...
[chromium-blink-merge.git] / chrome / renderer / static_v8_external_string_resource.cc
blob4395ffc0a715b7ddbe52d2870975d2b65c8c3db3
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/renderer/static_v8_external_string_resource.h"
7 StaticV8ExternalAsciiStringResource::StaticV8ExternalAsciiStringResource(
8 const base::StringPiece& buffer)
9 : buffer_(buffer) {
12 StaticV8ExternalAsciiStringResource::~StaticV8ExternalAsciiStringResource() {
15 const char* StaticV8ExternalAsciiStringResource::data() const {
16 return buffer_.data();
19 size_t StaticV8ExternalAsciiStringResource::length() const {
20 return buffer_.length();