summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/static_v8_external_one_byte_string_resource.cc
blob: 3f54b5ddfb57df01a36756d57bf82439948e6419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2014 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 "extensions/renderer/static_v8_external_one_byte_string_resource.h"

namespace extensions {

StaticV8ExternalOneByteStringResource::StaticV8ExternalOneByteStringResource(
    const base::StringPiece& buffer)
    : buffer_(buffer) {
}

StaticV8ExternalOneByteStringResource::
    ~StaticV8ExternalOneByteStringResource() {
}

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

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

}  // namespace extensions