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

Unified Diff: chromeos/network/tether_constants.h

Issue 2818593003: [CrOS Tether] Add tether network properties (battery percentage, carrier, and signal strength) to t… (Closed)
Patch Set: Tether networks connectable by default, and generated Closure compiler externs. Created 3 years, 8 months 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698