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 "content/browser/renderer_host/java/java_bridge_dispatcher_host_manager
.h" | 5 #include "content/browser/android/java/java_bridge_dispatcher_host_manager.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_weak_ref.h" | 8 #include "base/android/jni_weak_ref.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "content/browser/renderer_host/java/java_bound_object.h" | 13 #include "content/browser/android/java/java_bound_object.h" |
14 #include "content/browser/renderer_host/java/java_bridge_dispatcher_host.h" | 14 #include "content/browser/android/java/java_bridge_dispatcher_host.h" |
15 #include "content/common/android/hash_set.h" | 15 #include "content/common/android/hash_set.h" |
16 #include "content/common/java_bridge_messages.h" | 16 #include "content/common/java_bridge_messages.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/render_frame_host.h" | 18 #include "content/public/browser/render_frame_host.h" |
19 #include "third_party/WebKit/public/web/WebBindings.h" | 19 #include "third_party/WebKit/public/web/WebBindings.h" |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 JavaBridgeDispatcherHostManager::JavaBridgeDispatcherHostManager( | 23 JavaBridgeDispatcherHostManager::JavaBridgeDispatcherHostManager( |
24 WebContents* web_contents, | 24 WebContents* web_contents, |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 JNI_Java_HashSet_remove(env, retained_object_set, object); | 153 JNI_Java_HashSet_remove(env, retained_object_set, object); |
154 } | 154 } |
155 } | 155 } |
156 | 156 |
157 void JavaBridgeDispatcherHostManager::SetAllowObjectContentsInspection( | 157 void JavaBridgeDispatcherHostManager::SetAllowObjectContentsInspection( |
158 bool allow) { | 158 bool allow) { |
159 allow_object_contents_inspection_ = allow; | 159 allow_object_contents_inspection_ = allow; |
160 } | 160 } |
161 | 161 |
162 } // namespace content | 162 } // namespace content |
OLD | NEW |