Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_ANDROID_H_ | 5 #ifndef COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_ANDROID_H_ |
| 6 #define COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_ANDROID_H_ | 6 #define COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_ANDROID_H_ |
| 7 | 7 |
| 8 #include "components/devtools_bridge/session_dependency_factory.h" | 8 #include "components/devtools_bridge/session_dependency_factory.h" |
| 9 #include "jni.h" | 9 #include "jni.h" |
|
mnaganov (inactive)
2014/11/20 19:02:42
I think it should be "#include <jni.h>"
SeRya
2014/11/20 21:10:38
Done.
| |
| 10 | 10 |
| 11 namespace devtools_bridge { | 11 namespace devtools_bridge { |
| 12 namespace android { | 12 namespace android { |
| 13 | 13 |
| 14 class SessionDependencyFactoryAndroid : public SessionDependencyFactory { | 14 class SessionDependencyFactoryAndroid : public SessionDependencyFactory { |
| 15 public: | 15 public: |
| 16 SessionDependencyFactoryAndroid(); | 16 SessionDependencyFactoryAndroid(); |
| 17 virtual ~SessionDependencyFactoryAndroid(); | 17 virtual ~SessionDependencyFactoryAndroid(); |
| 18 | 18 |
| 19 static void RegisterNatives(JNIEnv* env); | 19 static bool RegisterNatives(JNIEnv* env); |
| 20 | 20 |
| 21 virtual scoped_ptr<AbstractPeerConnection> CreatePeerConnection( | 21 virtual scoped_ptr<AbstractPeerConnection> CreatePeerConnection( |
| 22 scoped_ptr<RTCConfiguration> config, | 22 scoped_ptr<RTCConfiguration> config, |
| 23 scoped_ptr<AbstractPeerConnection::Delegate> delegate) override; | 23 scoped_ptr<AbstractPeerConnection::Delegate> delegate) override; |
| 24 | 24 |
| 25 virtual scoped_refptr<base::TaskRunner> signaling_thread_task_runner() | 25 virtual scoped_refptr<base::TaskRunner> signaling_thread_task_runner() |
| 26 override; | 26 override; |
| 27 virtual scoped_refptr<base::TaskRunner> io_thread_task_runner() override; | 27 virtual scoped_refptr<base::TaskRunner> io_thread_task_runner() override; |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 const scoped_ptr<SessionDependencyFactory> impl_; | 30 const scoped_ptr<SessionDependencyFactory> impl_; |
| 31 | 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(SessionDependencyFactoryAndroid); | 32 DISALLOW_COPY_AND_ASSIGN(SessionDependencyFactoryAndroid); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace android | 35 } // namespace android |
| 36 } // namespace devtools_bridge | 36 } // namespace devtools_bridge |
| 37 | 37 |
| 38 #endif // COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_ANDROID _H_ | 38 #endif // COMPONENTS_DEVTOOLS_BRIDGE_ANDROID_SESSION_DEPENDENCY_FACTORY_ANDROID _H_ |
| OLD | NEW |