Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: content/public/android/java/src/org/chromium/content_public/common/Referrer.java

Issue 584523003: Create org.chromium.content_public.common and move two classes there. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_display_in_shortcuthelper
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698