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

Unified Diff: webrtc/api/android/jni/classreferenceholder.h

Issue 2547483003: Move /webrtc/api/android files to /webrtc/sdk/android (Closed)
Patch Set: Move to api folder under Android instead of src Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/api/android/jni/classreferenceholder.h
diff --git a/webrtc/api/android/jni/classreferenceholder.h b/webrtc/api/android/jni/classreferenceholder.h
index 41202780d05e9f40b223036b33294fc7f3ab6339..e4a5fded92d8a76054bccb30cd550f1e7b845429 100644
--- a/webrtc/api/android/jni/classreferenceholder.h
+++ b/webrtc/api/android/jni/classreferenceholder.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2015 The WebRTC project authors. All Rights Reserved.
+ * Copyright 2016 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
@@ -7,35 +7,5 @@
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
-
-// Android's FindClass() is trickier than usual because the app-specific
-// ClassLoader is not consulted when there is no app-specific frame on the
-// stack. Consequently, we only look up all classes once in app/webrtc.
-// http://developer.android.com/training/articles/perf-jni.html#faq_FindClass
-
-#ifndef WEBRTC_API_JAVA_JNI_CLASSREFERENCEHOLDER_H_
-#define WEBRTC_API_JAVA_JNI_CLASSREFERENCEHOLDER_H_
-
-#include <jni.h>
-#include <map>
-#include <string>
-
-namespace webrtc_jni {
-
-// LoadGlobalClassReferenceHolder must be called in JNI_OnLoad.
-void LoadGlobalClassReferenceHolder();
-// FreeGlobalClassReferenceHolder must be called in JNI_UnLoad.
-void FreeGlobalClassReferenceHolder();
-
-// Returns a global reference guaranteed to be valid for the lifetime of the
-// process.
-jclass FindClass(JNIEnv* jni, const char* name);
-
-// Convenience macro defining JNI-accessible methods in the org.webrtc package.
-// Eliminates unnecessary boilerplate and line-wraps, reducing visual clutter.
-#define JOW(rettype, name) extern "C" rettype JNIEXPORT JNICALL \
- Java_org_webrtc_##name
-
-} // namespace webrtc_jni
-
-#endif // WEBRTC_API_JAVA_JNI_CLASSREFERENCEHOLDER_H_
+// TODO(magjed): Update external dependencies and remove this.
+#include "webrtc/sdk/android/src/jni/classreferenceholder.h"
« no previous file with comments | « webrtc/api/android/jni/androidvideotracksource_jni.cc ('k') | webrtc/api/android/jni/classreferenceholder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698