summaryrefslogtreecommitdiffstats
path: root/extensions/shell/common
diff options
context:
space:
mode:
authorjamescook <jamescook@chromium.org>2015-01-27 09:38:35 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-27 17:39:28 +0000
commit8d2f9f9704898dcf70a8f8763a6571c6dbcc5fa9 (patch)
treea728b797bedc4f9c38ebd7589164ac889faef855 /extensions/shell/common
parent05cea38cd18a82c5e4e7512561f88eb407a5a87e (diff)
downloadchromium_src-8d2f9f9704898dcf70a8f8763a6571c6dbcc5fa9.zip
chromium_src-8d2f9f9704898dcf70a8f8763a6571c6dbcc5fa9.tar.gz
chromium_src-8d2f9f9704898dcf70a8f8763a6571c6dbcc5fa9.tar.bz2
chromeos: Add DBus binding for privetd Ping command
Extend PrivetDaemonClient to invoke the "Ping" D-Bus method on org.chromium.privetd.Manager. This is connected to the chrome.shell.gcd API for manual testing, but that will be deleted soon in favor of talking to privetd as part of Chrome OS OOBE. Manual tests require adding user chronos to group privetd in /etc/groups until https://code.google.com/p/brillo/issues/detail?id=3 lands. BUG=428848 TEST=added chromeos_unittests PrivetDaemonClient.* Review URL: https://codereview.chromium.org/869153005 Cr-Commit-Position: refs/heads/master@{#313298}
Diffstat (limited to 'extensions/shell/common')
-rw-r--r--extensions/shell/common/api/shell_gcd.idl35
1 files changed, 4 insertions, 31 deletions
diff --git a/extensions/shell/common/api/shell_gcd.idl b/extensions/shell/common/api/shell_gcd.idl
index c55aad6..7f2175a 100644
--- a/extensions/shell/common/api/shell_gcd.idl
+++ b/extensions/shell/common/api/shell_gcd.idl
@@ -6,38 +6,11 @@
// running on Chrome OS Core. The actual bootstrapping and GCD registration is
// handled by the privetd and buffet system daemons.
namespace shell.gcd {
-
- enum SetupStatus {
- // Not yet configured. Waiting for a connection from the phone or laptop
- // setup app.
- unconfigured,
-
- // Displaying code for user to verify they wish to set up this device.
- confirmingSetup,
-
- // Establishing a secure connection to the setup device and exchanging the
- // Wi-Fi credentials.
- exchangingCredentials,
-
- // Connecting to the local network.
- connectingToNetwork,
-
- // Registering with the GCD backend.
- registering,
-
- // Setup completed.
- completed
- };
-
- callback SetupStatusCallback = void(SetupStatus status);
+
+ callback PingCallback = void(boolean success);
interface Functions {
- // Returns the current setup status via |callback|.
- static void getSetupStatus(SetupStatusCallback callback);
- };
-
- interface Events {
- // Notifies that setup has transitioned to a new |status|.
- static void onSetupStatusChanged(SetupStatus status);
+ // Attempts to ping the daemon via D-Bus.
+ static void ping(PingCallback callback);
};
};