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

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: C++ skeleton Created 6 years, 2 months 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..e0ba3250cef44e28061d7c96ea03045a832402e0
--- /dev/null
+++ b/extensions/shell/common/api/shell_gcd.idl
@@ -0,0 +1,35 @@
+// 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 BootstrapStatus {
+ // Attempting to bootstrap onto Wi-Fi network.
+ bootstrapping,
Ken Rockot(use gerrit already) 2014/10/30 22:01:05 The naming is fine in general. All I really meant
+
+ // Has bootstrapped, connecting to Wi-Fi.
+ connecting,
+
+ // Has connected, registering with GCD backend.
+ registering,
+
+ // Bootstrap completed.
+ completed
+ };
+
+ callback BootstrapStatusCallback = void(BootstrapStatus status);
+
+ interface Functions {
+ // Returns the current bootstrap status via |callback|.
+ static void getBootstrapStatus(BootstrapStatusCallback callback);
+ };
+
+ interface Events {
+ // Notifies that bootstrapping has transitioned to a new |status|.
+ static void onBootstrapStatusChanged(BootstrapStatus 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