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

Unified Diff: services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h

Issue 2871223002: memory-infra: add ProcessType and expose data in RequestGlobalDump() (Closed)
Patch Set: review comments Created 3 years, 7 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: services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h
diff --git a/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h b/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h
index 85af5b888a24bd3c0c6d16c8ee6d33f9daf6fbe8..d94e62f9b2de874bd60931c4c1f24ad294955084 100644
--- a/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h
+++ b/services/resource_coordinator/public/cpp/memory/memory_instrumentation_struct_traits.h
@@ -130,29 +130,6 @@ struct SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT
base::trace_event::MemoryDumpCallbackResult::OSMemDump* out);
};
-template <>
-struct SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_EXPORT StructTraits<
- memory_instrumentation::mojom::MemoryDumpCallbackResultDataView,
- base::trace_event::MemoryDumpCallbackResult> {
- static base::trace_event::MemoryDumpCallbackResult::OSMemDump os_dump(
- const base::trace_event::MemoryDumpCallbackResult& args) {
- return args.os_dump;
- }
- static base::trace_event::MemoryDumpCallbackResult::ChromeMemDump chrome_dump(
- const base::trace_event::MemoryDumpCallbackResult& args) {
- return args.chrome_dump;
- }
- static const std::map<base::ProcessId,
- base::trace_event::MemoryDumpCallbackResult::OSMemDump>&
- extra_processes_dump(
- const base::trace_event::MemoryDumpCallbackResult& args) {
- return args.extra_processes_dump;
- }
- static bool Read(
- memory_instrumentation::mojom::MemoryDumpCallbackResultDataView input,
- base::trace_event::MemoryDumpCallbackResult* out);
-};
-
} // namespace mojo
#endif // SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_MEMORY_MEMORY_INSTRUMENTATION_STRUCT_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698