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

Unified Diff: third_party/WebKit/Source/platform/web_memory_allocator_dump_impl.h

Issue 1738843002: Refactoring: Unify WebMemoryAllocatorDump and WebMemoryAllocatorDumpImpl Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebasing) 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
Index: third_party/WebKit/Source/platform/web_memory_allocator_dump_impl.h
diff --git a/third_party/WebKit/Source/platform/web_memory_allocator_dump_impl.h b/third_party/WebKit/Source/platform/web_memory_allocator_dump_impl.h
deleted file mode 100644
index 8e38baf26dafdc58b4bdab32f0f7437de95d5b96..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/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 WebMemoryAllocatorDumpImpl_h
-#define WebMemoryAllocatorDumpImpl_h
-
-#include <stdint.h>
-
-#include "base/macros.h"
-#include "public/platform/WebMemoryAllocatorDump.h"
-
-namespace base {
-namespace trace_event {
-class MemoryAllocatorDump;
-} // namespace base
-} // namespace trace_event
-
-namespace blink {
-
-// 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 blink
-
-#endif // WebMemoryAllocatorDumpImpl_h

Powered by Google App Engine
This is Rietveld 408576698