forked from chromiumembedded/java-cef
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompletion_callback.h
More file actions
30 lines (21 loc) · 806 Bytes
/
completion_callback.h
File metadata and controls
30 lines (21 loc) · 806 Bytes
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 (c) 2014 The Chromium Embedded Framework 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 JCEF_NATIVE_COMPLETION_CALLBACK_H_
#define JCEF_NATIVE_COMPLETION_CALLBACK_H_
#pragma once
#include <jni.h>
#include "include/cef_callback.h"
#include "jni_scoped_helpers.h"
// CompletionCallback implementation.
class CompletionCallback : public CefCompletionCallback {
public:
CompletionCallback(JNIEnv* env, jobject jhandler);
// CompletionCallback methods
virtual void OnComplete() override;
protected:
ScopedJNIObjectGlobal handle_;
// Include the default reference counting implementation.
IMPLEMENT_REFCOUNTING(CompletionCallback);
};
#endif // JCEF_NATIVE_COMPLETION_CALLBACK_H_