Move call-stacks-related files to a new subdirectory.

Bug: 1504867
Change-Id: I056205e158fe04b649d77e6b02ce3c26e451c096
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5056234
Commit-Queue: Caitlin Fischer <[email protected]>
Reviewed-by: Ken Buchanan <[email protected]>
Auto-Submit: Caitlin Fischer <[email protected]>
Reviewed-by: David Roger <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1232814}
diff --git a/components/metrics/call_stacks/call_stack_profile_encoding.h b/components/metrics/call_stacks/call_stack_profile_encoding.h
new file mode 100644
index 0000000..e23658f1
--- /dev/null
+++ b/components/metrics/call_stacks/call_stack_profile_encoding.h
@@ -0,0 +1,28 @@
+// Copyright 2018 The Chromium Authors
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_METRICS_CALL_STACKS_CALL_STACK_PROFILE_ENCODING_H_
+#define COMPONENTS_METRICS_CALL_STACKS_CALL_STACK_PROFILE_ENCODING_H_
+
+#include "components/metrics/call_stacks/call_stack_profile_params.h"
+#include "third_party/metrics_proto/sampled_profile.pb.h"
+
+namespace metrics {
+
+// Translates CallStackProfileParams's process to the corresponding execution
+// context Process.
+Process ToExecutionContextProcess(CallStackProfileParams::Process process);
+
+// Translates CallStackProfileParams's thread to the corresponding
+// SampledProfile Thread.
+Thread ToExecutionContextThread(CallStackProfileParams::Thread thread);
+
+// Translates CallStackProfileParams's trigger to the corresponding
+// SampledProfile TriggerEvent.
+SampledProfile::TriggerEvent ToSampledProfileTriggerEvent(
+    CallStackProfileParams::Trigger trigger);
+
+}  // namespace metrics
+
+#endif  // COMPONENTS_METRICS_CALL_STACKS_CALL_STACK_PROFILE_ENCODING_H_