OLD | NEW |
| (Empty) |
1 // Copyright 2014 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 #include "components/devtools_bridge/android/session_dependency_factory_native.h
" | |
6 #include "jni/SessionDependencyFactoryNative_jni.h" | |
7 | |
8 namespace devtools_bridge { | |
9 namespace android { | |
10 | |
11 SessionDependencyFactoryNative::SessionDependencyFactoryNative() { | |
12 } | |
13 | |
14 SessionDependencyFactoryNative::~SessionDependencyFactoryNative() { | |
15 } | |
16 | |
17 // static | |
18 void SessionDependencyFactoryNative::RegisterNatives(JNIEnv* env) { | |
19 RegisterNativesImpl(env); | |
20 } | |
21 | |
22 static jlong CreateFactory(JNIEnv* env, jclass jcaller) { | |
23 return reinterpret_cast<jlong>(new SessionDependencyFactoryNative()); | |
24 } | |
25 | |
26 static void DestroyFactory(JNIEnv* env, jclass jcaller, jlong ptr) { | |
27 delete SessionDependencyFactoryNative::cast(ptr); | |
28 } | |
29 | |
30 } // namespace android | |
31 } // namespace devtools_bridge | |
OLD | NEW |