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

Unified Diff: content/child/web_memory_allocator_dump_impl.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/web_discardable_memory_impl.cc ('k') | content/child/web_memory_allocator_dump_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_memory_allocator_dump_impl.h
diff --git a/content/child/web_memory_allocator_dump_impl.h b/content/child/web_memory_allocator_dump_impl.h
deleted file mode 100644
index d9724035203aad5d4e9a0611c050ff41b98e4c75..0000000000000000000000000000000000000000
--- a/content/child/web_memory_allocator_dump_impl.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// 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.
-
-#ifndef CONTENT_CHILD_WEB_MEMORY_ALLOCATOR_DUMP_IMPL_H_
-#define CONTENT_CHILD_WEB_MEMORY_ALLOCATOR_DUMP_IMPL_H_
-
-#include <stdint.h>
-
-#include "base/macros.h"
-#include "third_party/WebKit/public/platform/WebMemoryAllocatorDump.h"
-
-namespace base {
-namespace trace_event {
-class MemoryAllocatorDump;
-} // namespace base
-} // namespace trace_event
-
-namespace content {
-
-// Implements the blink::WebMemoryAllocatorDump interface by means of proxying
-// the Add*() calls to the underlying base::trace_event::MemoryAllocatorDump
-// instance.
-class WebMemoryAllocatorDumpImpl : public blink::WebMemoryAllocatorDump {
- public:
- explicit WebMemoryAllocatorDumpImpl(
- base::trace_event::MemoryAllocatorDump* memory_allocator_dump);
- ~WebMemoryAllocatorDumpImpl() override;
-
- // blink::WebMemoryAllocatorDump implementation.
- void addScalar(const char* name, const char* units, uint64_t value) override;
- void addScalarF(const char* name, const char* units, double value) override;
- void addString(const char* name,
- const char* units,
- const blink::WebString& value) override;
-
- blink::WebMemoryAllocatorDumpGuid guid() const override;
-
- private:
- base::trace_event::MemoryAllocatorDump* memory_allocator_dump_; // Not owned.
- blink::WebMemoryAllocatorDumpGuid guid_;
-
- DISALLOW_COPY_AND_ASSIGN(WebMemoryAllocatorDumpImpl);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_WEB_MEMORY_ALLOCATOR_DUMP_IMPL_H_
« no previous file with comments | « content/child/web_discardable_memory_impl.cc ('k') | content/child/web_memory_allocator_dump_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698