• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.content_public.common;
6 
7 /**
8  * Container that holds together a referrer URL along with the referrer policy set on the
9  * originating frame. This corresponds to native content/public/common/referrer.h.
10  */
11 public class Referrer {
12     private final String mUrl;
13     private final int mPolicy;
14 
Referrer(String url, int policy)15     public Referrer(String url, int policy) {
16         mUrl = url;
17         mPolicy = policy;
18     }
19 
getUrl()20     public String getUrl() {
21         return mUrl;
22     }
23 
getPolicy()24     public int getPolicy() {
25         return mPolicy;
26     }
27 }
28