blob: c55aad66e99e1b940b1da78c5b9c2031eb60c21a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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);
};
};
|