blob: 8f2e9f763104cc9f6c2ae831e0cadc279adf76b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (c) 2010 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.
#ifndef ANDROID_NET_ANDROID_NETWORK_LIBRARY_IMPL_H_
#define ANDROID_NET_ANDROID_NETWORK_LIBRARY_IMPL_H_
#pragma once
#include <jni.h>
#include <string>
#include <vector>
#include "net/base/android_network_library.h"
class AndroidNetworkLibraryImpl : public net::AndroidNetworkLibrary {
public:
static void InitWithApplicationContext(JNIEnv* env, jobject context);
virtual VerifyResult VerifyX509CertChain(
const std::vector<std::string>& cert_chain,
const std::string& hostname,
const std::string& auth_type);
private:
explicit AndroidNetworkLibraryImpl(JNIEnv* env);
virtual ~AndroidNetworkLibraryImpl();
jclass cert_verifier_class_;
DISALLOW_COPY_AND_ASSIGN(AndroidNetworkLibraryImpl);
};
#endif // ANDROID_NET_ANDROID_NETWORK_LIBRARY_IMPL_H_
|