Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: extensions/shell/common/api/shell_gcd.idl

Issue 690093002: app_shell: Initial skeleton of a GCD target device setup API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (gcd) fix gn Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/shell/common/api/schemas.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ };
+};
« no previous file with comments | « extensions/shell/common/api/schemas.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698