Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(721)

Side by Side Diff: android_webview/native/aw_contents.h

Issue 25082006: [Android WebView] OnMemoryPressure to drop tile memory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use level Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 void SetFixedLayoutSize(JNIEnv* env, 172 void SetFixedLayoutSize(JNIEnv* env,
173 jobject obj, 173 jobject obj,
174 jint width_dip, 174 jint width_dip,
175 jint height_dip); 175 jint height_dip);
176 void SetSaveFormData(bool enabled); 176 void SetSaveFormData(bool enabled);
177 177
178 // Sets the java delegate 178 // Sets the java delegate
179 void SetAwAutofillManagerDelegate(jobject delegate); 179 void SetAwAutofillManagerDelegate(jobject delegate);
180 180
181 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); 181 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up);
182 void TrimMemory(JNIEnv* env, jobject obj, jint level);
182 183
183 private: 184 private:
184 void InitAutofillIfNecessary(bool enabled); 185 void InitAutofillIfNecessary(bool enabled);
185 void SetAndroidWebViewRendererPrefs(); 186 void SetAndroidWebViewRendererPrefs();
186 187
187 JavaObjectWeakGlobalRef java_ref_; 188 JavaObjectWeakGlobalRef java_ref_;
188 scoped_ptr<content::WebContents> web_contents_; 189 scoped_ptr<content::WebContents> web_contents_;
189 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; 190 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_;
190 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; 191 scoped_ptr<AwContentsClientBridge> contents_client_bridge_;
191 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; 192 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_;
(...skipping 10 matching lines...) Expand all
202 std::list<OriginCallback> pending_geolocation_prompts_; 203 std::list<OriginCallback> pending_geolocation_prompts_;
203 204
204 DISALLOW_COPY_AND_ASSIGN(AwContents); 205 DISALLOW_COPY_AND_ASSIGN(AwContents);
205 }; 206 };
206 207
207 bool RegisterAwContents(JNIEnv* env); 208 bool RegisterAwContents(JNIEnv* env);
208 209
209 } // namespace android_webview 210 } // namespace android_webview
210 211
211 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 212 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698