OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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.blimp.session; | 5 package org.chromium.blimp.app.session; |
6 | 6 |
7 import org.chromium.base.annotations.CalledByNative; | 7 import org.chromium.base.annotations.CalledByNative; |
8 import org.chromium.base.annotations.JNINamespace; | 8 import org.chromium.base.annotations.JNINamespace; |
9 import org.chromium.blimp.R; | 9 import org.chromium.blimp.app.R; |
10 import org.chromium.blimp_public.session.AssignmentRequestResult; | 10 import org.chromium.blimp_public.session.AssignmentRequestResult; |
11 import org.chromium.ui.base.WindowAndroid; | 11 import org.chromium.ui.base.WindowAndroid; |
12 | 12 |
13 import java.util.ArrayList; | 13 import java.util.ArrayList; |
14 import java.util.List; | 14 import java.util.List; |
15 | 15 |
16 /** | 16 /** |
17 * The Java representation of a native BlimpClientSession. This is primarily us
ed to provide access | 17 * The Java representation of a native BlimpClientSession. This is primarily us
ed to provide access |
18 * to the native session methods and to facilitate passing a BlimpClientSession
object between Java | 18 * to the native session methods and to facilitate passing a BlimpClientSession
object between Java |
19 * classes with native counterparts. | 19 * classes with native counterparts. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 public int[] getDebugStats() { | 178 public int[] getDebugStats() { |
179 if (mNativeBlimpClientSessionAndroidPtr == 0) return null; | 179 if (mNativeBlimpClientSessionAndroidPtr == 0) return null; |
180 return nativeGetDebugInfo(mNativeBlimpClientSessionAndroidPtr); | 180 return nativeGetDebugInfo(mNativeBlimpClientSessionAndroidPtr); |
181 } | 181 } |
182 | 182 |
183 private native long nativeInit(String assignerUrl, long windowAndroidPtr); | 183 private native long nativeInit(String assignerUrl, long windowAndroidPtr); |
184 private native void nativeConnect(long nativeBlimpClientSessionAndroid, Stri
ng token); | 184 private native void nativeConnect(long nativeBlimpClientSessionAndroid, Stri
ng token); |
185 private native void nativeDestroy(long nativeBlimpClientSessionAndroid); | 185 private native void nativeDestroy(long nativeBlimpClientSessionAndroid); |
186 private native int[] nativeGetDebugInfo(long nativeBlimpClientSessionAndroid
); | 186 private native int[] nativeGetDebugInfo(long nativeBlimpClientSessionAndroid
); |
187 } | 187 } |
OLD | NEW |