| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.pageinfo; | 5 package org.chromium.chrome.browser.page_info; |
| 6 | 6 |
| 7 import org.chromium.content_public.browser.WebContents; | 7 import org.chromium.content_public.browser.WebContents; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Helper class for obtaining site certificate chain from WebContents. | 10 * Helper class for obtaining site certificate chain from WebContents. |
| 11 */ | 11 */ |
| 12 public class CertificateChainHelper { | 12 public class CertificateChainHelper { |
| 13 | 13 |
| 14 public static byte[][] getCertificateChain(WebContents webContents) { | 14 public static byte[][] getCertificateChain(WebContents webContents) { |
| 15 return nativeGetCertificateChain(webContents); | 15 return nativeGetCertificateChain(webContents); |
| 16 } | 16 } |
| 17 | 17 |
| 18 private static native byte[][] nativeGetCertificateChain(WebContents webCont
ents); | 18 private static native byte[][] nativeGetCertificateChain(WebContents webCont
ents); |
| 19 } | 19 } |
| OLD | NEW |