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

Unified Diff: chromeos/components/tether/ble_constants.h

Issue 2590553003: [CrOS Tether] Create ble_constants.h/cc, which include common constants to be shared among multiple… (Closed)
Patch Set: hansberry@ comments. Created 4 years 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/components/tether/ble_constants.h
diff --git a/chromeos/components/tether/ble_constants.h b/chromeos/components/tether/ble_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..25f4b01c50690900d443e1ebc1c4f6dafddf9da0
--- /dev/null
+++ b/chromeos/components/tether/ble_constants.h
@@ -0,0 +1,30 @@
+// Copyright 2016 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_COMPONENTS_TETHER_BLE_CONSTANTS_H_
+#define CHROMEOS_COMPONENTS_TETHER_BLE_CONSTANTS_H_
+
+#include <string>
+
+namespace chromeos {
+
+namespace tether {
+
+// The maximum number of devices to which to advertise concurrently. If more
+// than this number of devices are registered, other advertisements must be
+// stopped before new ones can be added.
+//
+// Note that this upper limit on concurrent advertisements is imposed due to a
+// hardware limit of advertisements (many devices have <10 total advertisement
+// slots).
+extern const int kMaxConcurrentAdvertisements;
+
+// The service UUID used for BLE advertisements.
+extern const char kAdvertisingServiceUuid[];
+
+} // namespace tether
+
+} // namespace chromeos
+
+#endif // CHROMEOS_COMPONENTS_TETHER_BLE_CONSTANTS_H_
« no previous file with comments | « chromeos/components/tether/ble_advertisement_device_queue_unittest.cc ('k') | chromeos/components/tether/ble_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698