| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 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.webapk.lib.client; | |
| 6 | |
| 7 /** | |
| 8 * Contains state about whether Chrome is running in the Minted APK runtime. If
Chrome is running | |
| 9 * in the minted APK runtime, has enough information to determine whether a URL
navigation should | |
| 10 * stay within the current minted APK app. | |
| 11 */ | |
| 12 public class WebApkStateParams { | |
| 13 private boolean mUseMintedRuntime = false; | |
| 14 private String mPackageName = ""; | |
| 15 private String mScopeUrl = ""; | |
| 16 | |
| 17 public WebApkStateParams() { | |
| 18 } | |
| 19 | |
| 20 public WebApkStateParams( | |
| 21 boolean useMintedRuntime, String packageName, String scopeUrl) { | |
| 22 mUseMintedRuntime = useMintedRuntime; | |
| 23 mPackageName = packageName; | |
| 24 mScopeUrl = scopeUrl; | |
| 25 } | |
| 26 | |
| 27 public void setUseMintedRuntime(boolean useMintedRuntime) { | |
| 28 mUseMintedRuntime = useMintedRuntime; | |
| 29 } | |
| 30 | |
| 31 public void setMintedAPKPackageName(String packageName) { | |
| 32 mPackageName = packageName; | |
| 33 } | |
| 34 | |
| 35 public boolean useMintedRuntime() { | |
| 36 return mUseMintedRuntime; | |
| 37 } | |
| 38 | |
| 39 public String getMintedAPKPackageName() { | |
| 40 return mPackageName; | |
| 41 } | |
| 42 | |
| 43 public String getMintedAPKScopeUrl() { | |
| 44 return mScopeUrl; | |
| 45 } | |
| 46 } | |
| OLD | NEW |