| Index: chrome/browser/ssl/connection_security_helper_android.cc
|
| diff --git a/chrome/browser/ssl/connection_security_helper_android.cc b/chrome/browser/ssl/connection_security_helper_android.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d2bb3d457d6a08062320ac41d9dffdd12753c00f
|
| --- /dev/null
|
| +++ b/chrome/browser/ssl/connection_security_helper_android.cc
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2015 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.
|
| +
|
| +#include "chrome/browser/ssl/connection_security_helper_android.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "chrome/browser/ssl/connection_security_helper.h"
|
| +#include "content/public/browser/web_contents.h"
|
| +#include "jni/ConnectionSecurityHelper_jni.h"
|
| +
|
| +// static
|
| +bool RegisterConnectionSecurityHelperAndroid(JNIEnv* env) {
|
| + return RegisterNativesImpl(env);
|
| +}
|
| +
|
| +// static
|
| +jint GetSecurityLevelForWebContents(JNIEnv* env,
|
| + jclass jcaller,
|
| + jobject jweb_contents) {
|
| + content::WebContents* web_contents =
|
| + content::WebContents::FromJavaWebContents(jweb_contents);
|
| + DCHECK(web_contents);
|
| + return ConnectionSecurityHelper::GetSecurityLevelForWebContents(web_contents);
|
| +}
|
|
|