summaryrefslogtreecommitdiffstats
path: root/toolkit/crashreporter/mozannotation_server/src/process_reader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/crashreporter/mozannotation_server/src/process_reader.rs')
-rw-r--r--toolkit/crashreporter/mozannotation_server/src/process_reader.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/toolkit/crashreporter/mozannotation_server/src/process_reader.rs b/toolkit/crashreporter/mozannotation_server/src/process_reader.rs
new file mode 100644
index 0000000000..b405b4b725
--- /dev/null
+++ b/toolkit/crashreporter/mozannotation_server/src/process_reader.rs
@@ -0,0 +1,18 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
+
+use crate::ProcessHandle;
+
+pub struct ProcessReader {
+ process: ProcessHandle,
+}
+
+#[cfg(target_os = "windows")]
+mod windows;
+
+#[cfg(any(target_os = "android", target_os = "linux"))]
+mod linux;
+
+#[cfg(target_os = "macos")]
+mod macos;