Chromium Code Reviews| 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); |
| + }; |
| +}; |