diff options
author | Maksim Ivanov <emaxx@google.com> | 2018-09-18 16:36:01 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-09-20 05:15:17 -0700 |
commit | 891a69dbf8265c4a7516b8193024c63de1f3a17c (patch) | |
tree | 661710feeaa3c25dc3ec4945027b5158106d56aa | |
parent | 137cb973fb0eb203f47e50adce03baa4ff06a21b (diff) | |
download | system_api-891a69dbf8265c4a7516b8193024c63de1f3a17c.tar.gz |
diagnostics: Constant for Mojo pipe token
Add a constant with the Mojo pipe token for the Mojo pipe
between the browser and the diagnosticsd daemon. This constant
needs to be known on both ends of this Mojo pipe.
For example, on the browser side, that's the name that is passed
to mojo::OutgoingInvitation::AttachMessagePipe().
BUG=chromium:869377
TEST=system_api package builds
Change-Id: I3020c07de5493dac0740e43a4ec2d1791105e805
Reviewed-on: https://chromium-review.googlesource.com/1230873
Commit-Ready: Maksim Ivanov <emaxx@chromium.org>
Tested-by: Maksim Ivanov <emaxx@chromium.org>
Reviewed-by: Roman Sorokin <rsorokin@chromium.org>
-rw-r--r-- | dbus/diagnosticsd/dbus-constants.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/dbus/diagnosticsd/dbus-constants.h b/dbus/diagnosticsd/dbus-constants.h index edea7da..dbb1de7 100644 --- a/dbus/diagnosticsd/dbus-constants.h +++ b/dbus/diagnosticsd/dbus-constants.h @@ -10,14 +10,17 @@ namespace diagnostics { -const char kDiagnosticsdServiceInterface[] = +constexpr char kDiagnosticsdServiceInterface[] = "org.chromium.DiagnosticsdInterface"; -const char kDiagnosticsdServicePath[] = "/org/chromium/Diagnosticsd"; -const char kDiagnosticsdServiceName[] = "org.chromium.Diagnosticsd"; +constexpr char kDiagnosticsdServicePath[] = "/org/chromium/Diagnosticsd"; +constexpr char kDiagnosticsdServiceName[] = "org.chromium.Diagnosticsd"; -const char kDiagnosticsdBootstrapMojoConnectionMethod[] = +constexpr char kDiagnosticsdBootstrapMojoConnectionMethod[] = "BootstrapMojoConnection"; +// Token used for the Mojo connection pipe. +constexpr char kDiagnosticsdMojoConnectionChannelToken[] = "diagnosticsd"; + } // namespace diagnostics #endif // SYSTEM_API_DBUS_DIAGNOSTICSD_DBUS_CONSTANTS_H_ |