blob: 0f634ff181bed551310b6a3e1f5e7838f617ed9a (
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
|
// 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 "remoting/client/jni/jni_client.h"
#include "jni/Client_jni.h"
namespace remoting {
JniClient::JniClient() {
}
JniClient::~JniClient() {
}
// static
bool JniClient::RegisterJni(JNIEnv* env) {
return RegisterNativesImpl(env);
}
void JniClient::Destroy(JNIEnv* env, jobject caller) {
delete this;
}
static jlong Init(JNIEnv* env, jobject caller) {
return reinterpret_cast<intptr_t>(new JniClient());
}
} // namespace remoting
|