#ifndef CONTENT_BROWSER_ANDROID_CONTENT_SETTINGS_H_
#define CONTENT_BROWSER_ANDROID_CONTENT_SETTINGS_H_
#include <jni.h>
#include "base/android/jni_helper.h"
#include "content/public/browser/web_contents_observer.h"
namespace content {
class ContentSettings : public WebContentsObserver {
public:
ContentSettings(JNIEnv* env, jobject obj,
WebContents* contents);
static bool RegisterContentSettings(JNIEnv* env);
bool GetJavaScriptEnabled(JNIEnv* env, jobject obj);
private:
virtual ~ContentSettings();
virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE;
JavaObjectWeakGlobalRef content_settings_;
};
}
#endif