// 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 #include "include/cef_callback.h" // CompletionCallback implementation. class CompletionCallback : public CefCompletionCallback { public: CompletionCallback(JNIEnv* env, jobject jhandler); virtual ~CompletionCallback(); // CompletionCallback methods virtual void OnComplete() OVERRIDE; protected: jobject jhandler_; // Include the default reference counting implementation. IMPLEMENT_REFCOUNTING(CompletionCallback); }; #endif // JCEF_NATIVE_COMPLETION_CALLBACK_H_