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

Side by Side Diff: content/browser/android/content_view_statics.cc

Issue 147533004: Remove unneeded JNI registrations. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Fix android webview build issues. Created 6 years, 8 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 (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 #include <jni.h> 5 #include <jni.h>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "content/browser/android/content_view_statics.h"
15 #include "content/common/android/address_parser.h" 14 #include "content/common/android/address_parser.h"
16 #include "content/common/view_messages.h" 15 #include "content/common/view_messages.h"
17 #include "content/public/browser/render_process_host.h" 16 #include "content/public/browser/render_process_host.h"
18 #include "content/public/browser/render_process_host_observer.h" 17 #include "content/public/browser/render_process_host_observer.h"
19 #include "jni/ContentViewStatics_jni.h" 18 #include "jni/ContentViewStatics_jni.h"
20 19
21 using base::android::ConvertJavaStringToUTF16; 20 using base::android::ConvertJavaStringToUTF16;
22 using base::android::ConvertUTF16ToJavaString; 21 using base::android::ConvertUTF16ToJavaString;
23 22
24 namespace { 23 namespace {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 109
111 static void SetWebKitSharedTimersSuspended(JNIEnv* env, 110 static void SetWebKitSharedTimersSuspended(JNIEnv* env,
112 jclass obj, 111 jclass obj,
113 jboolean suspend) { 112 jboolean suspend) {
114 if (suspend) { 113 if (suspend) {
115 g_suspended_processes_watcher.Pointer()->SuspendWebKitSharedTimers(); 114 g_suspended_processes_watcher.Pointer()->SuspendWebKitSharedTimers();
116 } else { 115 } else {
117 g_suspended_processes_watcher.Pointer()->ResumeWebkitSharedTimers(); 116 g_suspended_processes_watcher.Pointer()->ResumeWebkitSharedTimers();
118 } 117 }
119 } 118 }
120
121 namespace content {
122
123 bool RegisterWebViewStatics(JNIEnv* env) {
124 return RegisterNativesImpl(env);
125 }
126
127 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698