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

Unified Diff: blimp/client/android/java/src/org/chromium/blimp/session/BlimpClientSession.java

Issue 1636163002: Restructure contents of blimp/client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: blimp/client/android/java/src/org/chromium/blimp/session/BlimpClientSession.java
diff --git a/blimp/client/android/java/src/org/chromium/blimp/session/BlimpClientSession.java b/blimp/client/android/java/src/org/chromium/blimp/session/BlimpClientSession.java
deleted file mode 100644
index f4bd6ac6d06efd94e8a72b60ab4d033da64f8502..0000000000000000000000000000000000000000
--- a/blimp/client/android/java/src/org/chromium/blimp/session/BlimpClientSession.java
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.blimp.session;
-
-import org.chromium.base.annotations.CalledByNative;
-import org.chromium.base.annotations.JNINamespace;
-
-/**
- * The Java representation of a native BlimpClientSession. This is primarily used to provide access
- * to the native session methods and to facilitate passing a BlimpClientSession object between Java
- * classes with native counterparts.
- */
-@JNINamespace("blimp::client")
-public class BlimpClientSession {
- private long mNativeBlimpClientSessionAndroidPtr;
-
- public BlimpClientSession() {
- mNativeBlimpClientSessionAndroidPtr = nativeInit();
- }
-
- /**
- * Destroys the native BlimpClientSession. This class should not be used after this is called.
- */
- public void destroy() {
- if (mNativeBlimpClientSessionAndroidPtr == 0) return;
-
- nativeDestroy(mNativeBlimpClientSessionAndroidPtr);
- mNativeBlimpClientSessionAndroidPtr = 0;
- }
-
- // Methods that are called by native via JNI.
- @CalledByNative
- private long getNativePtr() {
- assert mNativeBlimpClientSessionAndroidPtr != 0;
- return mNativeBlimpClientSessionAndroidPtr;
- }
-
- private native long nativeInit();
- private native void nativeDestroy(long nativeBlimpClientSessionAndroid);
-}

Powered by Google App Engine
This is Rietveld 408576698