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

Side by Side Diff: webapk/libs/client/src/org/chromium/webapk/lib/client/WebApkStateParams.java

Issue 1965583002: Move //webapk to //chrome/android/webapk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698