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

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: 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..4b4041bb3c6be0f4bc076eceaae5bfa1bf065335
--- /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_BLE_CONSTANTS_H_
Ryan Hansberry 2016/12/20 05:21:09 nit: should be CHROMEOS_COMPONENTS_TETHER_BLE_CONS
Kyle Horimoto 2016/12/20 05:31:32 Done.
+#define CHROMEOS_COMPONENTS_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;
Ryan Hansberry 2016/12/20 05:21:09 Will this need to be used anywhere else in the fut
Kyle Horimoto 2016/12/20 05:31:32 Yes, it will be used by the scanner and advertiser
+
+// The service UUID used for BLE advertisements.
+extern const char kAdvertisingServiceUuid[];
+
+} // namespace tether
+
+} // namespace chromeos
+
+#endif // CHROMEOS_COMPONENTS_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