OLD | NEW |
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_renderer_priority_manager.h" | 5 #include "android_webview/browser/aw_renderer_priority_manager.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "content/public/browser/browser_thread.h" | 8 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/browser/render_process_host.h" | 9 #include "content/public/browser/render_process_host.h" |
10 #include "jni/AwRendererPriorityManager_jni.h" | 10 #include "jni/AwRendererPriorityManager_jni.h" |
11 | 11 |
12 namespace android_webview { | 12 namespace android_webview { |
13 | 13 |
14 AwRendererPriorityManager::AwRendererPriorityManager( | 14 AwRendererPriorityManager::AwRendererPriorityManager( |
15 content::RenderProcessHost* host) | 15 content::RenderProcessHost* host) |
(...skipping 17 matching lines...) Expand all Loading... |
33 void AwRendererPriorityManager::SetRendererPriorityOnLauncherThread( | 33 void AwRendererPriorityManager::SetRendererPriorityOnLauncherThread( |
34 int pid, | 34 int pid, |
35 RendererPriority renderer_priority) { | 35 RendererPriority renderer_priority) { |
36 JNIEnv* env = base::android::AttachCurrentThread(); | 36 JNIEnv* env = base::android::AttachCurrentThread(); |
37 DCHECK(env); | 37 DCHECK(env); |
38 Java_AwRendererPriorityManager_setRendererPriority( | 38 Java_AwRendererPriorityManager_setRendererPriority( |
39 env, static_cast<jint>(pid), static_cast<jint>(renderer_priority)); | 39 env, static_cast<jint>(pid), static_cast<jint>(renderer_priority)); |
40 } | 40 } |
41 | 41 |
42 } // namespace android_webview | 42 } // namespace android_webview |
OLD | NEW |