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

Unified Diff: device/bluetooth/uribeacon/uri_encoder.h

Issue 950083003: device/bluetooth: Implemented UriBeacon decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: device/bluetooth/uribeacon/uri_encoder.h
diff --git a/device/bluetooth/uribeacon/uri_encoder.h b/device/bluetooth/uribeacon/uri_encoder.h
new file mode 100644
index 0000000000000000000000000000000000000000..e710b49d3ead095aced93d8317e567e5a6e9daa7
--- /dev/null
+++ b/device/bluetooth/uribeacon/uri_encoder.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
armansito 2015/02/24 23:55:08 nit: Drop the '(c)' bit.
dvh 2015/02/25 23:52:13 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DEVICE_BLUETOOTH_URIBEACON_URI_ENCODER_H_
+#define DEVICE_BLUETOOTH_URIBEACON_URI_ENCODER_H_
+
+#include <string>
+
+#include "base/strings/string_piece.h"
+
+namespace device {
+
+// Encodes the input string using URI encoding described in UriBeacon
+// specifications.
armansito 2015/02/24 23:55:07 I would probably add a comment-block at the top of
dvh 2015/03/03 20:26:04 Done.
+void EncodeUriBeaconUri(const base::StringPiece& input, std::string* output);
armansito 2015/02/24 23:55:08 I guess string -> string works as the general data
dvh 2015/03/03 20:26:03 Done.
+
+// Decodes the input string using URI encoding described in UriBeacon
+// specifications.
+void DecodeUriBeaconUri(const base::StringPiece& input, std::string* output);
+
+} // namespace device
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698