Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / extensions / renderer / static_v8_external_one_byte_string_resource.cc
blob3f54b5ddfb57df01a36756d57bf82439948e6419
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.
5 #include "extensions/renderer/static_v8_external_one_byte_string_resource.h"
7 namespace extensions {
9 StaticV8ExternalOneByteStringResource::StaticV8ExternalOneByteStringResource(
10 const base::StringPiece& buffer)
11 : buffer_(buffer) {
14 StaticV8ExternalOneByteStringResource::
15 ~StaticV8ExternalOneByteStringResource() {
18 const char* StaticV8ExternalOneByteStringResource::data() const {
19 return buffer_.data();
22 size_t StaticV8ExternalOneByteStringResource::length() const {
23 return buffer_.length();
26 } // namespace extensions