summaryrefslogtreecommitdiff
path: root/chromium/fuchsia/base/inspect.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/fuchsia/base/inspect.h')
-rw-r--r--chromium/fuchsia/base/inspect.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/chromium/fuchsia/base/inspect.h b/chromium/fuchsia/base/inspect.h
new file mode 100644
index 00000000000..4d8d35335ee
--- /dev/null
+++ b/chromium/fuchsia/base/inspect.h
@@ -0,0 +1,20 @@
+// Copyright 2020 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef FUCHSIA_BASE_INSPECT_H_
+#define FUCHSIA_BASE_INSPECT_H_
+
+namespace sys {
+class ComponentInspector;
+} // namespace sys
+
+namespace cr_fuchsia {
+
+// Publish the Chromium version via the Inspect API. The lifetime of
+// |inspector| has to be the same as the component it belongs to.
+void PublishVersionInfoToInspect(sys::ComponentInspector* inspector);
+
+} // namespace cr_fuchsia
+
+#endif // FUCHSIA_BASE_INSPECT_H_ \ No newline at end of file