| Index: third_party/WebKit/Source/platform/exported/web_memory_allocator_dump.cc
 | 
| diff --git a/third_party/WebKit/Source/platform/exported/web_memory_allocator_dump.cc b/third_party/WebKit/Source/platform/exported/web_memory_allocator_dump.cc
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..90152653e09f017b786b5a0e28e6bada8b9789c7
 | 
| --- /dev/null
 | 
| +++ b/third_party/WebKit/Source/platform/exported/web_memory_allocator_dump.cc
 | 
| @@ -0,0 +1,42 @@
 | 
| +// Copyright 2015 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 "public/platform/WebMemoryAllocatorDump.h"
 | 
| +
 | 
| +#include "base/trace_event/memory_allocator_dump.h"
 | 
| +
 | 
| +namespace blink {
 | 
| +
 | 
| +WebMemoryAllocatorDump::WebMemoryAllocatorDump(
 | 
| +    base::trace_event::MemoryAllocatorDump* memory_allocator_dump)
 | 
| +    : m_memoryAllocatorDump(memory_allocator_dump),
 | 
| +      m_guid(memory_allocator_dump->guid().ToUint64()) {
 | 
| +}
 | 
| +
 | 
| +WebMemoryAllocatorDump::~WebMemoryAllocatorDump() {
 | 
| +}
 | 
| +
 | 
| +void WebMemoryAllocatorDump::addScalar(const char* name,
 | 
| +                                       const char* units,
 | 
| +                                       uint64_t value) {
 | 
| +  m_memoryAllocatorDump->AddScalar(name, units, value);
 | 
| +}
 | 
| +
 | 
| +void WebMemoryAllocatorDump::addScalarF(const char* name,
 | 
| +                                        const char* units,
 | 
| +                                        double value) {
 | 
| +  m_memoryAllocatorDump->AddScalarF(name, units, value);
 | 
| +}
 | 
| +
 | 
| +void WebMemoryAllocatorDump::addString(const char* name,
 | 
| +                                       const char* units,
 | 
| +                                       const blink::WebString& value) {
 | 
| +  m_memoryAllocatorDump->AddString(name, units, value.utf8());
 | 
| +}
 | 
| +
 | 
| +WebMemoryAllocatorDumpGuid WebMemoryAllocatorDump::guid() const {
 | 
| +  return m_guid;
 | 
| +}
 | 
| +
 | 
| +}  // namespace blink
 | 
| 
 |