| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); | 199 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); |
| 200 void TrimMemoryOnRenderThread(JNIEnv* env, | 200 void TrimMemoryOnRenderThread(JNIEnv* env, |
| 201 jobject obj, | 201 jobject obj, |
| 202 jint level, | 202 jint level, |
| 203 jboolean visible); | 203 jboolean visible); |
| 204 | 204 |
| 205 private: | 205 private: |
| 206 void InitAutofillIfNecessary(bool enabled); | 206 void InitAutofillIfNecessary(bool enabled); |
| 207 void DidDrawGL(const DrawGLResult& result); | 207 void DidDrawGL(const DrawGLResult& result); |
| 208 void ForceFakeComposite(); | 208 void TrimMemory(const int level, const bool visible); |
| 209 | 209 |
| 210 base::WeakPtrFactory<AwContents> weak_factory_on_ui_thread_; | 210 base::WeakPtrFactory<AwContents> weak_factory_on_ui_thread_; |
| 211 base::WeakPtr<AwContents> ui_thread_weak_ptr_; | 211 base::WeakPtr<AwContents> ui_thread_weak_ptr_; |
| 212 | 212 |
| 213 JavaObjectWeakGlobalRef java_ref_; | 213 JavaObjectWeakGlobalRef java_ref_; |
| 214 scoped_ptr<content::WebContents> web_contents_; | 214 scoped_ptr<content::WebContents> web_contents_; |
| 215 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; | 215 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; |
| 216 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; | 216 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; |
| 217 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; | 217 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; |
| 218 scoped_ptr<FindHelper> find_helper_; | 218 scoped_ptr<FindHelper> find_helper_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 231 std::list<OriginCallback> pending_geolocation_prompts_; | 231 std::list<OriginCallback> pending_geolocation_prompts_; |
| 232 | 232 |
| 233 DISALLOW_COPY_AND_ASSIGN(AwContents); | 233 DISALLOW_COPY_AND_ASSIGN(AwContents); |
| 234 }; | 234 }; |
| 235 | 235 |
| 236 bool RegisterAwContents(JNIEnv* env); | 236 bool RegisterAwContents(JNIEnv* env); |
| 237 | 237 |
| 238 } // namespace android_webview | 238 } // namespace android_webview |
| 239 | 239 |
| 240 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ | 240 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ |
| OLD | NEW |