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

Unified Diff: content/child/web_memory_dump_provider_adapter.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_memory_allocator_dump_impl.cc ('k') | content/child/web_memory_dump_provider_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_memory_dump_provider_adapter.h
diff --git a/content/child/web_memory_dump_provider_adapter.h b/content/child/web_memory_dump_provider_adapter.h
deleted file mode 100644
index b1c0813869a2e600774661250f943903f530fef4..0000000000000000000000000000000000000000
--- a/content/child/web_memory_dump_provider_adapter.h
+++ /dev/null
@@ -1,49 +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_DUMP_PROVIDER_ADAPTER_H_
-#define CONTENT_CHILD_WEB_MEMORY_DUMP_PROVIDER_ADAPTER_H_
-
-#include "base/macros.h"
-#include "base/trace_event/memory_dump_provider.h"
-
-namespace blink {
-class WebMemoryDumpProvider;
-} // namespace blink
-
-namespace content {
-
-// Adapter class which makes it possible to register a WebMemoryDumpProvider (
-// from blink) to base::trace_event::MemoryDumpManager, which expects a
-// MemoryDumpProvider instead.
-// This is essentially proxying the OnMemoryDump from chromium base to blink.
-class WebMemoryDumpProviderAdapter
- : public base::trace_event::MemoryDumpProvider {
- public:
- explicit WebMemoryDumpProviderAdapter(blink::WebMemoryDumpProvider* wmdp);
- ~WebMemoryDumpProviderAdapter() override;
-
- // base::trace_event::MemoryDumpProvider implementation.
- bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
- base::trace_event::ProcessMemoryDump* pmd) override;
-
- void OnHeapProfilingEnabled(bool enabled) override;
-
- bool is_registered() const { return is_registered_; }
- void set_is_registered(bool is_registered) { is_registered_ = is_registered; }
-
- private:
- // The underlying WebMemoryDumpProvider instance to which the OnMemoryDump()
- // calls will be proxied to.
- blink::WebMemoryDumpProvider* web_memory_dump_provider_; // Not owned.
-
- // True iff this has been registered with the MDM (and not unregistered yet).
- bool is_registered_;
-
- DISALLOW_COPY_AND_ASSIGN(WebMemoryDumpProviderAdapter);
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_WEB_MEMORY_DUMP_PROVIDER_ADAPTER_H_
« no previous file with comments | « content/child/web_memory_allocator_dump_impl.cc ('k') | content/child/web_memory_dump_provider_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698