diagnostics: API for bootstrapping Mojo to browser

Add D-Bus API that allows bootstrapping Mojo connection between
browser and diagnosticsd. Mojo will be used for the actual
bidirectional communication between these two endpoints.

BUG=chromium:869377
TEST=none

Change-Id: I1746e26a95e5d8d04b47ffd7a54c29456c83de01
Reviewed-on: https://chromium-review.googlesource.com/1165982
Commit-Ready: Maksim Ivanov <emaxx@chromium.org>
Tested-by: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
diff --git a/dbus/diagnosticsd/dbus-constants.h b/dbus/diagnosticsd/dbus-constants.h
new file mode 100644
index 0000000..edea7da
--- /dev/null
+++ b/dbus/diagnosticsd/dbus-constants.h
@@ -0,0 +1,23 @@
+// Copyright 2018 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Constants for the D-Bus API exposed by the diagnosticsd daemon. Normally the
+// consumer of this API is the browser.
+
+#ifndef SYSTEM_API_DBUS_DIAGNOSTICSD_DBUS_CONSTANTS_H_
+#define SYSTEM_API_DBUS_DIAGNOSTICSD_DBUS_CONSTANTS_H_
+
+namespace diagnostics {
+
+const char kDiagnosticsdServiceInterface[] =
+    "org.chromium.DiagnosticsdInterface";
+const char kDiagnosticsdServicePath[] = "/org/chromium/Diagnosticsd";
+const char kDiagnosticsdServiceName[] = "org.chromium.Diagnosticsd";
+
+const char kDiagnosticsdBootstrapMojoConnectionMethod[] =
+    "BootstrapMojoConnection";
+
+}  // namespace diagnostics
+
+#endif  // SYSTEM_API_DBUS_DIAGNOSTICSD_DBUS_CONSTANTS_H_
diff --git a/dbus/service_constants.h b/dbus/service_constants.h
index 1e09200..f828c4b 100644
--- a/dbus/service_constants.h
+++ b/dbus/service_constants.h
@@ -16,6 +16,7 @@
 #include "cros-disks/dbus-constants.h"
 #include "cryptohome/dbus-constants.h"
 #include "debugd/dbus-constants.h"
+#include "diagnosticsd/dbus-constants.h"
 #include "drivefs/dbus-constants.h"
 #include "hammerd/dbus-constants.h"
 #include "login_manager/dbus-constants.h"