summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Mitra <alexmitra@google.com>2022-08-11 13:51:21 +0100
committerAlex Mitra <alexmitra@google.com>2022-08-11 13:51:21 +0100
commite4a43973b26522b94be7645d653102c5154b6a90 (patch)
tree92f050d378ce1f961af73cd7e995f10bf5658d8d
parentd800b38b90a0899ce3018ae766cbcefb3e2b4eab (diff)
parent6e76afff0f60642d711956e3b253d93a56a653d8 (diff)
downloadwebview_support_interfaces-e4a43973b26522b94be7645d653102c5154b6a90.tar.gz
[AndroidX Webkit] roll boundary interfaces to 6e76aff
This rolls the boundary interfaces for the androidx.webkit module to include the following commit range: https://android.googlesource.com/platform/external/webview_support_interfaces/+log/d800b38b90a0899ce3018ae766cbcefb3e2b4eab..6e76afff0f60642d711956e3b253d93a56a653d8 Test: N/A Change-Id: I16ac2e87513a7a4a27a3665b1146a4613c707e28
-rw-r--r--BUILD.gn1
-rw-r--r--src/org/chromium/support_lib_boundary/WebViewCookieManagerBoundaryInterface.java14
-rw-r--r--src/org/chromium/support_lib_boundary/WebkitToCompatConverterBoundaryInterface.java4
-rw-r--r--src/org/chromium/support_lib_boundary/util/Features.java3
4 files changed, 22 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index c20f885..6ad2c3c 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -29,6 +29,7 @@ android_library("boundary_interface_java") {
"src/org/chromium/support_lib_boundary/WebResourceRequestBoundaryInterface.java",
"src/org/chromium/support_lib_boundary/WebSettingsBoundaryInterface.java",
"src/org/chromium/support_lib_boundary/WebViewClientBoundaryInterface.java",
+ "src/org/chromium/support_lib_boundary/WebViewCookieManagerBoundaryInterface.java",
"src/org/chromium/support_lib_boundary/WebViewProviderBoundaryInterface.java",
"src/org/chromium/support_lib_boundary/WebViewProviderFactoryBoundaryInterface.java",
"src/org/chromium/support_lib_boundary/WebViewRendererBoundaryInterface.java",
diff --git a/src/org/chromium/support_lib_boundary/WebViewCookieManagerBoundaryInterface.java b/src/org/chromium/support_lib_boundary/WebViewCookieManagerBoundaryInterface.java
new file mode 100644
index 0000000..e29c908
--- /dev/null
+++ b/src/org/chromium/support_lib_boundary/WebViewCookieManagerBoundaryInterface.java
@@ -0,0 +1,14 @@
+// Copyright 2018 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.
+
+package org.chromium.support_lib_boundary;
+
+import java.util.List;
+
+/**
+ * Boundary interface for CookieManagerCompat.
+ */
+public interface WebViewCookieManagerBoundaryInterface {
+ List<String> getCookieInfo(String url);
+}
diff --git a/src/org/chromium/support_lib_boundary/WebkitToCompatConverterBoundaryInterface.java b/src/org/chromium/support_lib_boundary/WebkitToCompatConverterBoundaryInterface.java
index 1913b86..da335f1 100644
--- a/src/org/chromium/support_lib_boundary/WebkitToCompatConverterBoundaryInterface.java
+++ b/src/org/chromium/support_lib_boundary/WebkitToCompatConverterBoundaryInterface.java
@@ -63,4 +63,8 @@ public interface WebkitToCompatConverterBoundaryInterface {
/* WebMessagePort */ Object webMessagePort);
/* WebMessagePort */ Object convertWebMessagePort(
/* SupportLibWebMessagePort */ InvocationHandler webMessagePort);
+
+ // CookieManager
+ /* SupportLibWebViewCookieManager */ InvocationHandler convertCookieManager(
+ Object cookieManager);
}
diff --git a/src/org/chromium/support_lib_boundary/util/Features.java b/src/org/chromium/support_lib_boundary/util/Features.java
index 4c38495..e4abaae 100644
--- a/src/org/chromium/support_lib_boundary/util/Features.java
+++ b/src/org/chromium/support_lib_boundary/util/Features.java
@@ -210,4 +210,7 @@ public class Features {
// WebSettingsCompat.getEnterpriseAuthenticationAppLinkPolicyEnabled
public static final String ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY =
"ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY";
+
+ // CookieManagerCompat.getCookieInfo
+ public static final String GET_COOKIE_INFO = "GET_COOKIE_INFO";
}