Home | History | Annotate | Download | only in renderer
      1 // Copyright 2014 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.
      4 
      5 #include "extensions/renderer/static_v8_external_ascii_string_resource.h"
      6 
      7 namespace extensions {
      8 
      9 StaticV8ExternalAsciiStringResource::StaticV8ExternalAsciiStringResource(
     10     const base::StringPiece& buffer)
     11     : buffer_(buffer) {
     12 }
     13 
     14 StaticV8ExternalAsciiStringResource::~StaticV8ExternalAsciiStringResource() {
     15 }
     16 
     17 const char* StaticV8ExternalAsciiStringResource::data() const {
     18   return buffer_.data();
     19 }
     20 
     21 size_t StaticV8ExternalAsciiStringResource::length() const {
     22   return buffer_.length();
     23 }
     24 
     25 }  // namespace extensions
     26