| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 196 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
| 197 void TrimMemoryOnRenderThread(JNIEnv* env, | 197 void TrimMemoryOnRenderThread(JNIEnv* env, |
| 198 jobject obj, | 198 jobject obj, |
| 199 jint level, | 199 jint level, |
| 200 jboolean visible); | 200 jboolean visible); |
| 201 | 201 |
| 202 private: | 202 private: |
| 203 void InitAutofillIfNecessary(bool enabled); | 203 void InitAutofillIfNecessary(bool enabled); |
| 204 void SetAndroidWebViewRendererPrefs(); | 204 void SetAndroidWebViewRendererPrefs(); |
| 205 void DidDrawGL(const DrawGLResult& result); | 205 void DidDrawGL(const DrawGLResult& result); |
| 206 void ForceFakeComposite(); | 206 void TrimMemory(); |
| 207 | 207 |
| 208 base::WeakPtrFactory<AwContents> weak_factory_on_ui_thread_; | 208 base::WeakPtrFactory<AwContents> weak_factory_on_ui_thread_; |
| 209 base::WeakPtr<AwContents> ui_thread_weak_ptr_; | 209 base::WeakPtr<AwContents> ui_thread_weak_ptr_; |
| 210 | 210 |
| 211 JavaObjectWeakGlobalRef java_ref_; | 211 JavaObjectWeakGlobalRef java_ref_; |
| 212 scoped_ptr<content::WebContents> web_contents_; | 212 scoped_ptr<content::WebContents> web_contents_; |
| 213 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 213 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
| 214 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; | 214 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; |
| 215 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; | 215 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; |
| 216 scoped_ptr<FindHelper> find_helper_; | 216 scoped_ptr<FindHelper> find_helper_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 229 std::list<OriginCallback> pending_geolocation_prompts_; | 229 std::list<OriginCallback> pending_geolocation_prompts_; |
| 230 | 230 |
| 231 DISALLOW_COPY_AND_ASSIGN(AwContents); | 231 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 bool RegisterAwContents(JNIEnv* env); | 234 bool RegisterAwContents(JNIEnv* env); |
| 235 | 235 |
| 236 } // namespace android_webview | 236 } // namespace android_webview |
| 237 | 237 |
| 238 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 238 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |