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

Side by Side Diff: webrtc/api/android/jni/classreferenceholder.cc

Issue 2235893003: Remove the old AndroidVideoCapturer stack code. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include "webrtc/api/android/jni/classreferenceholder.h" 10 #include "webrtc/api/android/jni/classreferenceholder.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 LoadClass(jni, "org/webrtc/PeerConnection$KeyType"); 87 LoadClass(jni, "org/webrtc/PeerConnection$KeyType");
88 LoadClass(jni, "org/webrtc/PeerConnection$SignalingState"); 88 LoadClass(jni, "org/webrtc/PeerConnection$SignalingState");
89 LoadClass(jni, "org/webrtc/RtpReceiver"); 89 LoadClass(jni, "org/webrtc/RtpReceiver");
90 LoadClass(jni, "org/webrtc/RtpSender"); 90 LoadClass(jni, "org/webrtc/RtpSender");
91 LoadClass(jni, "org/webrtc/SessionDescription"); 91 LoadClass(jni, "org/webrtc/SessionDescription");
92 LoadClass(jni, "org/webrtc/SessionDescription$Type"); 92 LoadClass(jni, "org/webrtc/SessionDescription$Type");
93 LoadClass(jni, "org/webrtc/StatsReport"); 93 LoadClass(jni, "org/webrtc/StatsReport");
94 LoadClass(jni, "org/webrtc/StatsReport$Value"); 94 LoadClass(jni, "org/webrtc/StatsReport$Value");
95 LoadClass(jni, "org/webrtc/SurfaceTextureHelper"); 95 LoadClass(jni, "org/webrtc/SurfaceTextureHelper");
96 LoadClass(jni, "org/webrtc/VideoCapturer"); 96 LoadClass(jni, "org/webrtc/VideoCapturer");
97 LoadClass(jni, "org/webrtc/VideoCapturer$NativeObserver");
98 LoadClass(jni, "org/webrtc/VideoRenderer$I420Frame"); 97 LoadClass(jni, "org/webrtc/VideoRenderer$I420Frame");
99 LoadClass(jni, "org/webrtc/VideoTrack"); 98 LoadClass(jni, "org/webrtc/VideoTrack");
100 } 99 }
101 100
102 ClassReferenceHolder::~ClassReferenceHolder() { 101 ClassReferenceHolder::~ClassReferenceHolder() {
103 RTC_CHECK(classes_.empty()) << "Must call FreeReferences() before dtor!"; 102 RTC_CHECK(classes_.empty()) << "Must call FreeReferences() before dtor!";
104 } 103 }
105 104
106 void ClassReferenceHolder::FreeReferences(JNIEnv* jni) { 105 void ClassReferenceHolder::FreeReferences(JNIEnv* jni) {
107 for (std::map<std::string, jclass>::const_iterator it = classes_.begin(); 106 for (std::map<std::string, jclass>::const_iterator it = classes_.begin();
(...skipping 20 matching lines...) Expand all
128 RTC_CHECK(inserted) << "Duplicate class name: " << name; 127 RTC_CHECK(inserted) << "Duplicate class name: " << name;
129 } 128 }
130 129
131 // Returns a global reference guaranteed to be valid for the lifetime of the 130 // Returns a global reference guaranteed to be valid for the lifetime of the
132 // process. 131 // process.
133 jclass FindClass(JNIEnv* jni, const char* name) { 132 jclass FindClass(JNIEnv* jni, const char* name) {
134 return g_class_reference_holder->GetClass(name); 133 return g_class_reference_holder->GetClass(name);
135 } 134 }
136 135
137 } // namespace webrtc_jni 136 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « webrtc/api/android/jni/androidvideocapturer_jni.cc ('k') | webrtc/api/android/jni/peerconnection_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698