aboutsummaryrefslogtreecommitdiff
path: root/dbus
diff options
context:
space:
mode:
authorZentaro Kavanagh <zentaro@chromium.org>2018-09-09 22:14:56 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-09-09 22:14:56 -0700
commitaaf50d326bab70a2385bba21eac46c685442cae6 (patch)
tree58829a7e9e2cd06a566c528fdb393ca25c7bd32a /dbus
parentcfe6acbd1e0dbe39e95f65d63538c4e2a8a49a06 (diff)
parent326384d6d8eae04f7cc8971f708b53fc35c983ab (diff)
downloadsystem_api-aaf50d326bab70a2385bba21eac46c685442cae6.tar.gz
system_api: Add DBus constants and protos for OOBE config
am: 326384d6d8 Change-Id: I52b4147d23148167bcdbd94d7a235a113dda4c18
Diffstat (limited to 'dbus')
-rw-r--r--dbus/oobe_config/dbus-constants.h20
-rw-r--r--dbus/oobe_config/oobe_config.proto13
-rw-r--r--dbus/service_constants.h1
3 files changed, 34 insertions, 0 deletions
diff --git a/dbus/oobe_config/dbus-constants.h b/dbus/oobe_config/dbus-constants.h
new file mode 100644
index 0000000..ef5b04e
--- /dev/null
+++ b/dbus/oobe_config/dbus-constants.h
@@ -0,0 +1,20 @@
+// 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.
+
+#ifndef SYSTEM_API_DBUS_OOBE_CONFIG_DBUS_CONSTANTS_H_
+#define SYSTEM_API_DBUS_OOBE_CONFIG_DBUS_CONSTANTS_H_
+
+namespace oobe_config {
+
+// General
+const char kOobeConfigRestoreInterface[] = "org.chromium.OobeConfigRestore";
+const char kOobeConfigRestoreServicePath[] = "/org/chromium/OobeConfigRestore";
+const char kOobeConfigRestoreServiceName[] = "org.chromium.OobeConfigRestore";
+
+// Methods
+const char kProcessAndGetOobeAutoConfigMethod[] = "ProcessAndGetOobeAutoConfig";
+
+} // namespace oobe_config
+
+#endif // SYSTEM_API_DBUS_OOBE_CONFIG_DBUS_CONSTANTS_H_
diff --git a/dbus/oobe_config/oobe_config.proto b/dbus/oobe_config/oobe_config.proto
new file mode 100644
index 0000000..d5d4b55
--- /dev/null
+++ b/dbus/oobe_config/oobe_config.proto
@@ -0,0 +1,13 @@
+// Copyright 2018 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.
+
+syntax = "proto3";
+
+option optimize_for = LITE_RUNTIME;
+
+package oobe_config;
+
+message OobeRestoreData {
+ string chrome_config_json = 1;
+}
diff --git a/dbus/service_constants.h b/dbus/service_constants.h
index 0a0218a..37b50fa 100644
--- a/dbus/service_constants.h
+++ b/dbus/service_constants.h
@@ -21,6 +21,7 @@
#include "hammerd/dbus-constants.h"
#include "login_manager/dbus-constants.h"
#include "lorgnette/dbus-constants.h"
+#include "oobe_config/dbus-constants.h"
#include "permission_broker/dbus-constants.h"
#include "power_manager/dbus-constants.h"
#include "seneschal/dbus-constants.h"