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

Unified Diff: components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryNative.java

Issue 704613003: Beginning implementation of SessionDependencyFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed dependency on libjingle Created 6 years, 1 month 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: components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryNative.java
diff --git a/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryNative.java b/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryNative.java
new file mode 100644
index 0000000000000000000000000000000000000000..7495111873647220eb87f0b0e6aa41a1dda93cd4
--- /dev/null
+++ b/components/devtools_bridge/android/java/src/org/chromium/components/devtools_bridge/SessionDependencyFactoryNative.java
@@ -0,0 +1,28 @@
+// Copyright 2014 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.components.devtools_bridge;
+
+import org.chromium.base.JNINamespace;
+
+/**
+ * Native implementation of session dependency factory on top of C++
+ * libjingle API.
+ */
+@JNINamespace("devtools_bridge::android")
+public class SessionDependencyFactoryNative {
+ private final long mInstance;
+
+ public SessionDependencyFactoryNative() {
+ mInstance = nativeCreateFactory();
+ assert mInstance != 0;
+ }
+
+ public void dispose() {
+ nativeDestroyFactory(mInstance);
+ }
+
+ private static native long nativeCreateFactory();
+ private static native void nativeDestroyFactory(long ptr);
+}
« no previous file with comments | « components/devtools_bridge/android/DEPS ('k') | components/devtools_bridge/android/javatests2/AndroidManifest.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698