Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Setup related functions for a Google Cloud Devices (GCD) target device | |
| 6 // running on Chrome OS Core. The actual bootstrapping and GCD registration is | |
| 7 // handled by the privetd and buffet system daemons. | |
| 8 namespace shell.gcd { | |
| 9 | |
| 10 enum BootstrapStatus { | |
| 11 // Attempting to bootstrap onto Wi-Fi network. | |
| 12 bootstrapping, | |
|
Ken Rockot(use gerrit already)
2014/10/30 20:47:21
nit: I think the term "bootstrap" is being overloa
James Cook
2014/10/30 21:30:50
Maybe it should be SetupStatus?
I was trying to f
| |
| 13 | |
| 14 // Has bootstrapped, connecting to Wi-Fi. | |
| 15 connecting, | |
| 16 | |
| 17 // Has connected, registering with GCD backend. | |
| 18 registering, | |
| 19 | |
| 20 // Bootstrap completed. | |
| 21 completed | |
| 22 }; | |
| 23 | |
| 24 callback BootstrapStatusCallback = void(BootstrapStatus status); | |
| 25 | |
| 26 interface Functions { | |
| 27 // Returns the current bootstrap status via |callback|. | |
| 28 static void GetBootstrapStatus(BootstrapStatusCallback callback); | |
|
Ken Rockot(use gerrit already)
2014/10/30 20:47:21
nit: getBootstrapStatus
James Cook
2014/10/30 21:30:50
Good catch.
| |
| 29 }; | |
| 30 | |
| 31 interface Events { | |
| 32 // Notifies that bootstrapping has transitioned to a new |status|. | |
| 33 static void onBootstrapStatusChanged(BootstrapStatus status); | |
| 34 }; | |
| 35 }; | |
| OLD | NEW |