| Index: content/public/android/java/src/org/chromium/content_public/Referrer.java
|
| diff --git a/content/public/android/java/src/org/chromium/content_public/Referrer.java b/content/public/android/java/src/org/chromium/content_public/Referrer.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..efb3e0c781b2853bc07d2ec7bcfe3b0aaf666bb0
|
| --- /dev/null
|
| +++ b/content/public/android/java/src/org/chromium/content_public/Referrer.java
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2014 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.content_public;
|
| +
|
| +/**
|
| + * Container that holds together a referrer URL along with the referrer policy set on the
|
| + * originating frame. This corresponds to native content/public/common/referrer.h.
|
| + */
|
| +public class Referrer {
|
| + private final String mUrl;
|
| + private final int mPolicy;
|
| +
|
| + public Referrer(String url, int policy) {
|
| + mUrl = url;
|
| + mPolicy = policy;
|
| + }
|
| +
|
| + public String getUrl() {
|
| + return mUrl;
|
| + }
|
| +
|
| + public int getPolicy() {
|
| + return mPolicy;
|
| + }
|
| +}
|
|
|