Index: components/devtools_bridge/android/session_dependency_factory_native.h |
diff --git a/components/devtools_bridge/android/session_dependency_factory_native.h b/components/devtools_bridge/android/session_dependency_factory_native.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bf287812d8b11b8b3187d7720145926d1ad6acb5 |
--- /dev/null |
+++ b/components/devtools_bridge/android/session_dependency_factory_native.h |
@@ -0,0 +1,37 @@ |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
mnaganov (inactive)
2014/11/05 22:38:49
nit: remove "(c)"
SeRya
2014/11/06 06:42:46
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_NAITIVE_H_ |
mnaganov (inactive)
2014/11/05 22:38:49
typo: NAITIVE
SeRya
2014/11/06 06:42:46
Done.
|
+#define COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_NAITIVE_H_ |
+ |
+#include "jni.h" |
+ |
+namespace webrtc { |
+class PeerConnectionFactoryInterface; |
+} |
+ |
+namespace devtools_bridge { |
+namespace android { |
+ |
+class SessionDependencyFactoryNative { |
+ public: |
+ SessionDependencyFactoryNative(); |
+ ~SessionDependencyFactoryNative(); |
mnaganov (inactive)
2014/11/05 22:38:49
nit: wrong indentation
SeRya
2014/11/06 06:42:46
Done.
|
+ |
+ static void RegisterNatives(JNIEnv* env); |
+ inline static SessionDependencyFactoryNative* cast(jlong ptr); |
+ |
+ private: |
+ webrtc::PeerConnectionFactoryInterface* const factory_; |
+}; |
+ |
+SessionDependencyFactoryNative* |
+SessionDependencyFactoryNative::cast(jlong ptr) { |
+ return reinterpret_cast<SessionDependencyFactoryNative*>(ptr); |
+} |
+ |
+} // namespace android |
+} // namespace devtools_bridge |
+ |
+#endif // COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_NAITIVE_H_ |