OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "net/cert/x509_util_android.h" | 5 #include "net/cert/x509_util_android.h" |
6 | 6 |
7 #include "base/android/build_info.h" | 7 #include "base/android/build_info.h" |
8 #include "base/android/jni_android.h" | 8 #include "base/android/context_utils.h" |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "jni/X509Util_jni.h" | 10 #include "jni/X509Util_jni.h" |
11 #include "net/cert/cert_database.h" | 11 #include "net/cert/cert_database.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 void NotifyKeyChainChanged(JNIEnv* env, const JavaParamRef<jclass>& clazz) { | 15 void NotifyKeyChainChanged(JNIEnv* env, const JavaParamRef<jclass>& clazz) { |
16 CertDatabase::GetInstance()->OnAndroidKeyChainChanged(); | 16 CertDatabase::GetInstance()->OnAndroidKeyChainChanged(); |
17 } | 17 } |
18 | 18 |
(...skipping 16 matching lines...) Expand all Loading... |
35 // adopt the global-ref'ed jobject as a local ref as the constructor would. | 35 // adopt the global-ref'ed jobject as a local ref as the constructor would. |
36 r.Reset(env, base::android::GetApplicationContext()); | 36 r.Reset(env, base::android::GetApplicationContext()); |
37 return r; | 37 return r; |
38 } | 38 } |
39 | 39 |
40 bool RegisterX509Util(JNIEnv* env) { | 40 bool RegisterX509Util(JNIEnv* env) { |
41 return RegisterNativesImpl(env); | 41 return RegisterNativesImpl(env); |
42 } | 42 } |
43 | 43 |
44 } // net namespace | 44 } // net namespace |
OLD | NEW |