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 #ifndef COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_NATIVE_H_ | |
6 #define COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_NATIVE_H_ | |
7 | |
8 #include "jni.h" | |
9 | |
10 namespace devtools_bridge { | |
11 namespace android { | |
12 | |
13 class SessionDependencyFactoryNative { | |
14 public: | |
15 SessionDependencyFactoryNative(); | |
16 ~SessionDependencyFactoryNative(); | |
17 | |
18 static void RegisterNatives(JNIEnv* env); | |
19 inline static SessionDependencyFactoryNative* cast(jlong ptr); | |
20 }; | |
21 | |
22 SessionDependencyFactoryNative* | |
23 SessionDependencyFactoryNative::cast(jlong ptr) { | |
24 return reinterpret_cast<SessionDependencyFactoryNative*>(ptr); | |
25 } | |
26 | |
27 } // namespace android | |
28 } // namespace devtools_bridge | |
29 | |
30 #endif // COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_NATIVE_
H_ | |
OLD | NEW |