OLD | NEW |
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/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "content/browser/android/content_view_statics.h" | 13 #include "content/browser/android/content_view_statics.h" |
14 #include "content/common/android/address_parser.h" | 14 #include "content/common/android/address_parser.h" |
15 #include "content/common/view_messages.h" | 15 #include "content/common/view_messages.h" |
16 #include "content/public/browser/render_process_host.h" | 16 #include "content/public/browser/render_process_host.h" |
17 #include "content/public/browser/render_process_host_observer.h" | 17 #include "content/public/browser/render_process_host_observer.h" |
18 #include "jni/ContentViewStatics_jni.h" | 18 #include "jni/ContentViewStatics_jni.h" |
19 | 19 |
20 using base::android::ConvertJavaStringToUTF16; | 20 using base::android::ConvertJavaStringToUTF16; |
21 using base::android::ConvertUTF16ToJavaString; | 21 using base::android::ConvertUTF16ToJavaString; |
| 22 using base::android::JavaParamRef; |
| 23 using base::android::ScopedJavaLocalRef; |
22 | 24 |
23 namespace { | 25 namespace { |
24 | 26 |
25 // TODO(pliard): http://crbug.com/235909. Move WebKit shared timer toggling | 27 // TODO(pliard): http://crbug.com/235909. Move WebKit shared timer toggling |
26 // functionality out of ContentViewStatistics and not be build on top of | 28 // functionality out of ContentViewStatistics and not be build on top of |
27 // blink::Platform::SuspendSharedTimer. | 29 // blink::Platform::SuspendSharedTimer. |
28 // TODO(pliard): http://crbug.com/235912. Add unit tests for WebKit shared timer | 30 // TODO(pliard): http://crbug.com/235912. Add unit tests for WebKit shared timer |
29 // toggling. | 31 // toggling. |
30 | 32 |
31 // This tracks the renderer processes that received a suspend request. It's | 33 // This tracks the renderer processes that received a suspend request. It's |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 } | 118 } |
117 } | 119 } |
118 | 120 |
119 namespace content { | 121 namespace content { |
120 | 122 |
121 bool RegisterWebViewStatics(JNIEnv* env) { | 123 bool RegisterWebViewStatics(JNIEnv* env) { |
122 return RegisterNativesImpl(env); | 124 return RegisterNativesImpl(env); |
123 } | 125 } |
124 | 126 |
125 } // namespace content | 127 } // namespace content |
OLD | NEW |