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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/pageinfo/CertificateChainHelper.java

Issue 2567673002: Factor getCertificateChain out of ConnectionPopupInfo (Closed)
Patch Set: Address review comments 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/pageinfo/ConnectionInfoPopup.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/pageinfo/CertificateChainHelper.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/pageinfo/CertificateChainHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/pageinfo/CertificateChainHelper.java
new file mode 100644
index 0000000000000000000000000000000000000000..3d8a3b42bd880154a557263a6ab5a3df3f9b003d
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/pageinfo/CertificateChainHelper.java
@@ -0,0 +1,19 @@
+// 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.
+
+package org.chromium.chrome.browser.pageinfo;
+
+import org.chromium.content_public.browser.WebContents;
+
+/**
+ * Helper class for obtaining site certificate chain from WebContents.
+ */
+public class CertificateChainHelper {
+
+ public static byte[][] getCertificateChain(WebContents webContents) {
+ return nativeGetCertificateChain(webContents);
+ }
+
+ private static native byte[][] nativeGetCertificateChain(WebContents webContents);
+}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/pageinfo/ConnectionInfoPopup.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698