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

Unified Diff: ios/chrome/common/physical_web/physical_web_types.h

Issue 2023833002: [iOS] Upstream physical web classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment about limiting the dependencies Created 4 years, 7 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: ios/chrome/common/physical_web/physical_web_types.h
diff --git a/ios/chrome/common/physical_web/physical_web_types.h b/ios/chrome/common/physical_web/physical_web_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..f3fb67bd297cf1d25766449f34b601747cf4ce10
--- /dev/null
+++ b/ios/chrome/common/physical_web/physical_web_types.h
@@ -0,0 +1,30 @@
+// Copyright 2015 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 IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_TYPES_H_
+#define IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_TYPES_H_
+
+#import <Foundation/Foundation.h>
+
+@class PhysicalWebDevice;
+
+namespace physical_web {
+
+typedef void (^RequestFinishedBlock)(PhysicalWebDevice*, NSError*);
+
+// Error domain for physical web.
+extern NSString* const kPhysicalWebErrorDomain;
+
+// Error codes for physical web errors.
+enum PhysicalWebErrorCode {
+ // The JSON data returned by the metadata service is invalid.
+ ERROR_INVALID_JSON = 1,
+};
+
+// Maximum value for the rank of a physical web device.
+extern const double kMaxRank;
+
+} // namespace physical_web
+
+#endif // IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_TYPES_H_
« no previous file with comments | « ios/chrome/common/physical_web/physical_web_scanner.mm ('k') | ios/chrome/common/physical_web/physical_web_types.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698