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

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

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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "android_webview/native/aw_contents.h" 5 #include "android_webview/native/aw_contents.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "android_webview/browser/aw_browser_context.h" 9 #include "android_webview/browser/aw_browser_context.h"
10 #include "android_webview/browser/aw_browser_main_parts.h" 10 #include "android_webview/browser/aw_browser_main_parts.h"
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 jboolean enabled) { 891 jboolean enabled) {
892 browser_view_renderer_->EnableOnNewPicture(enabled); 892 browser_view_renderer_->EnableOnNewPicture(enabled);
893 } 893 }
894 894
895 void AwContents::SetJsOnlineProperty(JNIEnv* env, 895 void AwContents::SetJsOnlineProperty(JNIEnv* env,
896 jobject obj, 896 jobject obj,
897 jboolean network_up) { 897 jboolean network_up) {
898 render_view_host_ext_->SetJsOnlineProperty(network_up); 898 render_view_host_ext_->SetJsOnlineProperty(network_up);
899 } 899 }
900 900
901 void AwContents::TrimMemory(JNIEnv* env, jobject obj, jint level) {
902 browser_view_renderer_->TrimMemory(level);
903 }
904
901 } // namespace android_webview 905 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698