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

Side by Side 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: 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 unified diff | Download patch
« no previous file with comments | « extensions/shell/common/api/schemas.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 };
OLDNEW
« 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