| Index: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PwCollection.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PwCollection.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PwCollection.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b14b27556c438387884aa82de4855c577d92e424
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PwCollection.java
|
| @@ -0,0 +1,25 @@
|
| +// 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;
|
| +
|
| +import java.util.List;
|
| +
|
| +/**
|
| + * A physical web collection stores UrlInfos and PwsResults for scanned URLs.
|
| + */
|
| +public class PwCollection {
|
| + public final UrlInfo[] urlInfos;
|
| + public final PwsResult[] pwsResults;
|
| +
|
| + /**
|
| + * Construct a PwCollection.
|
| + * @param urlInfos All nearby URL infos.
|
| + * @param pwsResults The metadata for nearby URLs.
|
| + */
|
| + public PwCollection(List<UrlInfo> urlInfos, List<PwsResult> pwsResults) {
|
| + this.urlInfos = urlInfos.toArray(new UrlInfo[0]);
|
| + this.pwsResults = pwsResults.toArray(new PwsResult[0]);
|
| + }
|
| +}
|
|
|