Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: components/devtools_bridge/android/session_dependency_factory_native.h

Issue 704613003: Beginning implementation of SessionDependencyFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698