Index: snapshot/memory_map_region_snapshot.h |
diff --git a/test/paths_win.cc b/snapshot/memory_map_region_snapshot.h |
similarity index 55% |
copy from test/paths_win.cc |
copy to snapshot/memory_map_region_snapshot.h |
index 95d0264ed82ab36cf0e541315528d44585f4bbb8..4d271f7ab11c2871771a3023b854fd8488547ba1 100644 |
--- a/test/paths_win.cc |
+++ b/snapshot/memory_map_region_snapshot.h |
@@ -12,19 +12,24 @@ |
// See the License for the specific language governing permissions and |
// limitations under the License. |
-#include "test/paths.h" |
+#ifndef CRASHPAD_SNAPSHOT_MEMORY_MAP_REGION_SNAPSHOT_H_ |
+#define CRASHPAD_SNAPSHOT_MEMORY_MAP_REGION_SNAPSHOT_H_ |
#include <windows.h> |
+#include <dbghelp.h> |
namespace crashpad { |
-namespace test { |
-// static |
-base::FilePath Paths::Executable() { |
- wchar_t executable_path[_MAX_PATH]; |
- GetModuleFileName(nullptr, executable_path, sizeof(executable_path)); |
- return base::FilePath(executable_path); |
-} |
+//! \brief An abstract interface to a snapshot representing a region of the |
+//! memory map present in the snapshot process. |
+class MemoryMapRegionSnapshot { |
+ public: |
+ virtual ~MemoryMapRegionSnapshot() {} |
+ |
+ //! \brief Gets a MINIDUMP_MEMORY_INFO representing the region. |
+ virtual const MINIDUMP_MEMORY_INFO& AsMinidumpMemoryInfo() const = 0; |
+}; |
-} // namespace test |
} // namespace crashpad |
+ |
+#endif // CRASHPAD_SNAPSHOT_MEMORY_MAP_REGION_SNAPSHOT_H_ |