Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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.
| |
| 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_NAITIVE_H_ | |
|
mnaganov (inactive)
2014/11/05 22:38:49
typo: NAITIVE
SeRya
2014/11/06 06:42:46
Done.
| |
| 6 #define COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_NAITIVE_H_ | |
| 7 | |
| 8 #include "jni.h" | |
| 9 | |
| 10 namespace webrtc { | |
| 11 class PeerConnectionFactoryInterface; | |
| 12 } | |
| 13 | |
| 14 namespace devtools_bridge { | |
| 15 namespace android { | |
| 16 | |
| 17 class SessionDependencyFactoryNative { | |
| 18 public: | |
| 19 SessionDependencyFactoryNative(); | |
| 20 ~SessionDependencyFactoryNative(); | |
|
mnaganov (inactive)
2014/11/05 22:38:49
nit: wrong indentation
SeRya
2014/11/06 06:42:46
Done.
| |
| 21 | |
| 22 static void RegisterNatives(JNIEnv* env); | |
| 23 inline static SessionDependencyFactoryNative* cast(jlong ptr); | |
| 24 | |
| 25 private: | |
| 26 webrtc::PeerConnectionFactoryInterface* const factory_; | |
| 27 }; | |
| 28 | |
| 29 SessionDependencyFactoryNative* | |
| 30 SessionDependencyFactoryNative::cast(jlong ptr) { | |
| 31 return reinterpret_cast<SessionDependencyFactoryNative*>(ptr); | |
| 32 } | |
| 33 | |
| 34 } // namespace android | |
| 35 } // namespace devtools_bridge | |
| 36 | |
| 37 #endif // COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_NAITIVE _H_ | |
| OLD | NEW |