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

Side by Side Diff: android_webview/browser/aw_renderer_priority_manager.cc

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 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
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_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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698