Chromium Code Reviews| Index: chromeos/network/tether_constants.h |
| diff --git a/chromeos/network/tether_constants.h b/chromeos/network/tether_constants.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f0e36691fd7a7072b0e87d730009c83f770bb787 |
| --- /dev/null |
| +++ b/chromeos/network/tether_constants.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2017 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. |
| +#ifndef CHROMEOS_NETWORK_TETHER_CONSTANTS_H_ |
| +#define CHROMEOS_NETWORK_TETHER_CONSTANTS_H_ |
| + |
| +#include "chromeos/chromeos_export.h" |
| + |
| +namespace chromeos { |
| + |
| +// This file contains constants for Chrome OS tether networks which are used |
| +// wherever Shill constants are appropriate. Tether networks are a Chrome OS |
| +// concept which does not exist as part of Shill, so these custom definitions |
| +// are used instead. Tether networks are never intended to be passed to Shill |
| +// code, and these values are used primarily to implement the |
|
stevenjb
2017/04/14 22:04:49
The real reason we uses these is that NetworkState
Kyle Horimoto
2017/04/17 21:05:11
While this solution could also work, Ryan and I ag
|
| +// chrome.networkingPrivate API. |
| + |
| +// Represents the tether network type. |
| +CHROMEOS_EXPORT extern const char kTypeTether[]; |
| + |
| +// Properties associated with tether networks. |
| +CHROMEOS_EXPORT extern const char kTetherBatteryPercentage[]; |
| +CHROMEOS_EXPORT extern const char kTetherCarrier[]; |
| +CHROMEOS_EXPORT extern const char kTetherSignalStrength[]; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROMEOS_NETWORK_TETHER_CONSTANTS_H_ |