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