| 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;
|
| + }
|
| +}
|
|
|