Index: extensions/shell/common/api/shell_gcd.idl |
diff --git a/extensions/shell/common/api/shell_gcd.idl b/extensions/shell/common/api/shell_gcd.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c55aad66e99e1b940b1da78c5b9c2031eb60c21a |
--- /dev/null |
+++ b/extensions/shell/common/api/shell_gcd.idl |
@@ -0,0 +1,43 @@ |
+// Copyright 2014 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. |
+ |
+// Setup related functions for a Google Cloud Devices (GCD) target device |
+// 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); |
+ |
+ 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); |
+ }; |
+}; |