#ifndef CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_
#define CHROME_BROWSER_UI_ANDROID_NAVIGATION_POPUP_H_
#include <jni.h>
#include "base/android/jni_helper.h"
#include "base/basictypes.h"
#include "base/task/cancelable_task_tracker.h"
class GURL;
namespace chrome {
struct FaviconImageResult;
}
class NavigationPopup {
public:
NavigationPopup(JNIEnv* env, jobject obj);
void Destroy(JNIEnv* env, jobject obj);
void FetchFaviconForUrl(JNIEnv* env, jobject obj, jstring jurl);
void OnFaviconDataAvailable(GURL navigation_entry_url,
const chrome::FaviconImageResult& image_result);
static bool RegisterNavigationPopup(JNIEnv* env);
protected:
virtual ~NavigationPopup();
private:
JavaObjectWeakGlobalRef weak_jobject_;
base::CancelableTaskTracker cancelable_task_tracker_;
DISALLOW_COPY_AND_ASSIGN(NavigationPopup);
};
#endif