summaryrefslogtreecommitdiffstats
path: root/android_webview/native/aw_settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'android_webview/native/aw_settings.h')
-rw-r--r--android_webview/native/aw_settings.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/android_webview/native/aw_settings.h b/android_webview/native/aw_settings.h
index 4d0d5a0..d547f34 100644
--- a/android_webview/native/aw_settings.h
+++ b/android_webview/native/aw_settings.h
@@ -18,14 +18,13 @@ class AwRenderViewHostExt;
class AwSettings : public content::WebContentsObserver {
public:
- AwSettings(JNIEnv* env, jobject obj);
+ AwSettings(JNIEnv* env, jobject obj, jint web_contents);
virtual ~AwSettings();
// Called from Java. Methods with "Locked" suffix require that the settings
// access lock is held during their execution.
void Destroy(JNIEnv* env, jobject obj);
void ResetScrollAndScaleState(JNIEnv* env, jobject obj);
- void SetWebContentsLocked(JNIEnv* env, jobject obj, jint web_contents);
void UpdateEverythingLocked(JNIEnv* env, jobject obj);
void UpdateInitialPageScaleLocked(JNIEnv* env, jobject obj);
void UpdateUserAgentLocked(JNIEnv* env, jobject obj);
@@ -40,6 +39,8 @@ class AwSettings : public content::WebContentsObserver {
// WebContentsObserver overrides:
virtual void RenderViewCreated(
content::RenderViewHost* render_view_host) OVERRIDE;
+ virtual void WebContentsDestroyed(
+ content::WebContents* web_contents) OVERRIDE;
JavaObjectWeakGlobalRef aw_settings_;
};