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

Unified Diff: device/bluetooth/bluetooth_service_record_chromeos.h

Issue 11884027: Separated BluetoothServiceRecord interface from BluetoothServiceRecordChromeOs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changed namespace from device to chromeos. Created 7 years, 11 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
« no previous file with comments | « device/bluetooth/bluetooth_service_record.cc ('k') | device/bluetooth/bluetooth_service_record_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_service_record_chromeos.h
diff --git a/device/bluetooth/bluetooth_service_record_chromeos.h b/device/bluetooth/bluetooth_service_record_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..04f2b3aa7a9f8bcc95753e264d3ef21a433ff9d8
--- /dev/null
+++ b/device/bluetooth/bluetooth_service_record_chromeos.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 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 DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_
+#define DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "device/bluetooth/bluetooth_service_record.h"
+
+class XmlReader;
+
+namespace chromeos {
tfarina 2013/01/15 17:08:13 shouldn't this be in device namespace? this is und
youngki 2013/01/15 17:18:31 All other *_chromeos.* in device use chromeos name
tfarina 2013/01/15 17:23:04 This is not following any convention. This is craz
+
+// BluetoothServiceRecordChromeOs is an implementation of BluetoothServiceRecord
+// for the ChromeOS platform.
+class BluetoothServiceRecordChromeOs : public device::BluetoothServiceRecord {
tfarina 2013/01/15 17:08:13 ChromeOs is too weird. ChromeOS seems better.
youngki 2013/01/15 17:18:31 Again, all other classes in device directory use C
tfarina 2013/01/15 17:23:04 Not in this CL of course, but could be done in a f
+ public:
+ BluetoothServiceRecordChromeOs(
+ const std::string& address,
tfarina 2013/01/15 17:08:13 doesn't this fit above?
youngki 2013/01/15 17:18:31 Done.
+ const std::string& xml_data);
+
+ private:
+ void ExtractChannels(XmlReader* reader);
+ void ExtractUuid(XmlReader* reader);
+
+ DISALLOW_COPY_AND_ASSIGN(BluetoothServiceRecordChromeOs);
+};
+
+} // namespace chromeos
+
+#endif // DEVICE_BLUETOOTH_BLUETOOTH_SERVICE_RECORD_CHROMEOS_H_
« no previous file with comments | « device/bluetooth/bluetooth_service_record.cc ('k') | device/bluetooth/bluetooth_service_record_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698