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

Side by Side Diff: talk/app/webrtc/java/jni/classreferenceholder.cc

Issue 1395693002: Add option to print peer connection factory Java stack traces. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Add native callback API Created 5 years, 2 months 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
« no previous file with comments | « no previous file | talk/app/webrtc/java/jni/peerconnection_jni.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 bool is_egl14_supported = jni->CallStaticBooleanMethod( 91 bool is_egl14_supported = jni->CallStaticBooleanMethod(
92 j_egl_base_class, j_is_egl14_supported_method); 92 j_egl_base_class, j_is_egl14_supported_method);
93 CHECK_EXCEPTION(jni); 93 CHECK_EXCEPTION(jni);
94 if (is_egl14_supported) { 94 if (is_egl14_supported) {
95 LoadClass(jni, "android/opengl/EGLContext"); 95 LoadClass(jni, "android/opengl/EGLContext");
96 } 96 }
97 #endif 97 #endif
98 LoadClass(jni, "org/webrtc/MediaSource$State"); 98 LoadClass(jni, "org/webrtc/MediaSource$State");
99 LoadClass(jni, "org/webrtc/MediaStream"); 99 LoadClass(jni, "org/webrtc/MediaStream");
100 LoadClass(jni, "org/webrtc/MediaStreamTrack$State"); 100 LoadClass(jni, "org/webrtc/MediaStreamTrack$State");
101 LoadClass(jni, "org/webrtc/PeerConnectionFactory");
101 LoadClass(jni, "org/webrtc/PeerConnection$BundlePolicy"); 102 LoadClass(jni, "org/webrtc/PeerConnection$BundlePolicy");
102 LoadClass(jni, "org/webrtc/PeerConnection$ContinualGatheringPolicy"); 103 LoadClass(jni, "org/webrtc/PeerConnection$ContinualGatheringPolicy");
103 LoadClass(jni, "org/webrtc/PeerConnection$RtcpMuxPolicy"); 104 LoadClass(jni, "org/webrtc/PeerConnection$RtcpMuxPolicy");
104 LoadClass(jni, "org/webrtc/PeerConnection$IceConnectionState"); 105 LoadClass(jni, "org/webrtc/PeerConnection$IceConnectionState");
105 LoadClass(jni, "org/webrtc/PeerConnection$IceGatheringState"); 106 LoadClass(jni, "org/webrtc/PeerConnection$IceGatheringState");
106 LoadClass(jni, "org/webrtc/PeerConnection$IceTransportsType"); 107 LoadClass(jni, "org/webrtc/PeerConnection$IceTransportsType");
107 LoadClass(jni, "org/webrtc/PeerConnection$TcpCandidatePolicy"); 108 LoadClass(jni, "org/webrtc/PeerConnection$TcpCandidatePolicy");
108 LoadClass(jni, "org/webrtc/PeerConnection$KeyType"); 109 LoadClass(jni, "org/webrtc/PeerConnection$KeyType");
109 LoadClass(jni, "org/webrtc/PeerConnection$SignalingState"); 110 LoadClass(jni, "org/webrtc/PeerConnection$SignalingState");
110 LoadClass(jni, "org/webrtc/SessionDescription"); 111 LoadClass(jni, "org/webrtc/SessionDescription");
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 RTC_CHECK(inserted) << "Duplicate class name: " << name; 146 RTC_CHECK(inserted) << "Duplicate class name: " << name;
146 } 147 }
147 148
148 // Returns a global reference guaranteed to be valid for the lifetime of the 149 // Returns a global reference guaranteed to be valid for the lifetime of the
149 // process. 150 // process.
150 jclass FindClass(JNIEnv* jni, const char* name) { 151 jclass FindClass(JNIEnv* jni, const char* name) {
151 return g_class_reference_holder->GetClass(name); 152 return g_class_reference_holder->GetClass(name);
152 } 153 }
153 154
154 } // namespace webrtc_jni 155 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/java/jni/peerconnection_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698