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

Unified Diff: base/trace_event/memory_dump_provider.h

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « base/trace_event/memory_dump_manager_unittest.cc ('k') | base/trace_event/memory_dump_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/memory_dump_provider.h
diff --git a/base/trace_event/memory_dump_provider.h b/base/trace_event/memory_dump_provider.h
index 1c5bbb15050fc5eeb31e92fab34afe12dc8342b8..5cc3a6ee66c1d276a2a43dc7c722968417d7d2ef 100644
--- a/base/trace_event/memory_dump_provider.h
+++ b/base/trace_event/memory_dump_provider.h
@@ -6,7 +6,7 @@
#define BASE_TRACE_EVENT_MEMORY_DUMP_PROVIDER_H_
#include "base/base_export.h"
-#include "base/macros.h"
+#include "base/trace_event/memory_allocator_attributes.h"
namespace base {
namespace trace_event {
@@ -22,11 +22,22 @@ class BASE_EXPORT MemoryDumpProvider {
virtual const char* GetFriendlyName() const = 0;
+ const MemoryAllocatorDeclaredAttributes& allocator_attributes() const {
+ return allocator_attributes_;
+ }
+
protected:
- MemoryDumpProvider() {}
- virtual ~MemoryDumpProvider() {}
+ MemoryDumpProvider();
+ virtual ~MemoryDumpProvider();
+
+ void DeclareAllocatorAttribute(const MemoryAllocatorDeclaredAttribute& attr);
private:
+ // The map (attribute name -> type) that specifies the semantic of the
+ // extra attributes that the MemoryAllocatorDump(s) produced by this
+ // MemoryDumpProvider will have.
+ MemoryAllocatorDeclaredAttributes allocator_attributes_;
+
DISALLOW_COPY_AND_ASSIGN(MemoryDumpProvider);
};
« no previous file with comments | « base/trace_event/memory_dump_manager_unittest.cc ('k') | base/trace_event/memory_dump_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698