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

Unified Diff: content/public/browser/android/interface_provider_android.h

Issue 2217013002: Remove the JNI-based InterfaceRegistry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java-interface-registry-migration
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/android/interface_registry_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/interface_provider_android.h
diff --git a/content/public/browser/android/interface_provider_android.h b/content/public/browser/android/interface_provider_android.h
deleted file mode 100644
index a5a6266a623dadb9f27244d432833c6ae0d8a2d8..0000000000000000000000000000000000000000
--- a/content/public/browser/android/interface_provider_android.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_PUBLIC_BROWSER_ANDROID_INTERFACE_PROVIDER_ANDROID_H_
-#define CONTENT_PUBLIC_BROWSER_ANDROID_INTERFACE_PROVIDER_ANDROID_H_
-
-#include <jni.h>
-#include <memory>
-
-#include "base/android/scoped_java_ref.h"
-#include "content/common/content_export.h"
-
-namespace shell {
-class InterfaceProvider;
-}
-
-namespace content {
-
-// Android wrapper around shell::InterfaceProvider, allowing code in Java to
-// request interfaces implemented in other environments.
-class CONTENT_EXPORT InterfaceProviderAndroid {
- public:
- virtual ~InterfaceProviderAndroid() {}
-
- // The |remote_interfaces| parameter must outlive |InterfaceProviderAndroid|.
- static std::unique_ptr<InterfaceProviderAndroid> Create(
- shell::InterfaceProvider* remote_interfaces);
-
- // Called from Java.
- virtual void GetInterface(
- JNIEnv* env,
- const base::android::JavaParamRef<jobject>& j_interface_provider,
- const base::android::JavaParamRef<jstring>& j_name,
- jint handle) = 0;
-
- // Accessor to the Java object.
- virtual const base::android::ScopedJavaGlobalRef<jobject>& GetObj() = 0;
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_ANDROID_INTERFACE_PROVIDER_ANDROID_H_
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/android/interface_registry_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698