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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PwPair.java

Issue 2330253002: Add access to Physical Web Service results (Closed)
Patch Set: Fix broken tests Created 4 years, 3 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: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PwPair.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PwPair.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PwPair.java
new file mode 100644
index 0000000000000000000000000000000000000000..88155d1ee8c3b10ddbac6487d796a0696ed4c352
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PwPair.java
@@ -0,0 +1,39 @@
+// 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.
+
+package org.chromium.chrome.browser.physicalweb;
+
+/**
+ * A physical web pair represents a UrlInfo and its corresponding PwsResult.
+ */
+public class PwPair {
+ private final UrlInfo mUrlInfo;
+ private final PwsResult mPwsResult;
+
+ /**
+ * Construct a PwPair.
+ * @param urlInfo The URL info.
+ * @param pwsResult The metadata returned by PWS for the URL broadcast by the device.
+ */
+ public PwPair(UrlInfo urlInfo, PwsResult pwsResult) {
+ mUrlInfo = urlInfo;
+ mPwsResult = pwsResult;
+ }
+
+ /**
+ * Get the UrlInfo represented in the pair.
+ * @return the UrlInfo.
+ */
+ public UrlInfo getUrlInfo() {
+ return mUrlInfo;
+ }
+
+ /**
+ * Get the PwsResult represented in the pair.
+ * @return the PwsResult.
+ */
+ public PwsResult getPwsResult() {
+ return mPwsResult;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698