Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: content/child/web_memory_allocator_dump_impl.cc

Issue 1660383002: Refactoring: Move some classes from content/child to platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add PLATFORM_EXPORT; Address haraken's review Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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 "content/child/web_memory_allocator_dump_impl.h"
6
7 #include "base/trace_event/memory_allocator_dump.h"
8
9 namespace content {
10
11 WebMemoryAllocatorDumpImpl::WebMemoryAllocatorDumpImpl(
12 base::trace_event::MemoryAllocatorDump* memory_allocator_dump)
13 : memory_allocator_dump_(memory_allocator_dump),
14 guid_(memory_allocator_dump->guid().ToUint64()) {
15 }
16
17 WebMemoryAllocatorDumpImpl::~WebMemoryAllocatorDumpImpl() {
18 }
19
20 void WebMemoryAllocatorDumpImpl::addScalar(const char* name,
21 const char* units,
22 uint64_t value) {
23 memory_allocator_dump_->AddScalar(name, units, value);
24 }
25
26 void WebMemoryAllocatorDumpImpl::addScalarF(const char* name,
27 const char* units,
28 double value) {
29 memory_allocator_dump_->AddScalarF(name, units, value);
30 }
31
32 void WebMemoryAllocatorDumpImpl::addString(const char* name,
33 const char* units,
34 const blink::WebString& value) {
35 memory_allocator_dump_->AddString(name, units, value.utf8());
36 }
37
38 blink::WebMemoryAllocatorDumpGuid WebMemoryAllocatorDumpImpl::guid() const {
39 return guid_;
40 }
41 } // namespace content
OLDNEW
« no previous file with comments | « content/child/web_memory_allocator_dump_impl.h ('k') | content/child/web_memory_dump_provider_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698