Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SQL_PROCESS_MEMORY_DUMP_PROVIDER_H | |
| 6 #define SQL_PROCESS_MEMORY_DUMP_PROVIDER_H | |
| 7 | |
| 8 #include "base/memory/singleton.h" | |
| 9 #include "base/trace_event/memory_dump_provider.h" | |
| 10 #include "sql/sql_export.h" | |
| 11 | |
| 12 namespace sql { | |
| 13 | |
| 14 class SQL_EXPORT ProcessMemoryDumpProvider | |
|
Primiano Tucci (use gerrit)
2015/09/30 10:26:56
Can you please add a comment explaining what this
ssid
2015/10/02 17:06:10
Done.
| |
| 15 : public base::trace_event::MemoryDumpProvider { | |
| 16 public: | |
| 17 static ProcessMemoryDumpProvider* GetInstance(); | |
| 18 | |
| 19 // MemoryDumpProvider implementation. | |
| 20 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, | |
| 21 base::trace_event::ProcessMemoryDump* pmd) override; | |
| 22 | |
| 23 private: | |
| 24 friend struct DefaultSingletonTraits<ProcessMemoryDumpProvider>; | |
| 25 | |
| 26 ProcessMemoryDumpProvider(); | |
| 27 ~ProcessMemoryDumpProvider() override; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(ProcessMemoryDumpProvider); | |
| 30 }; | |
| 31 | |
| 32 } // namespace sql | |
| 33 | |
| 34 #endif // SQL_PROCESS_MEMORY_DUMP_PROVIDER_H | |
| OLD | NEW |