| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 const std::string& name, | 40 const std::string& name, |
| 41 const base::android::JavaRef<jobject>& object, | 41 const base::android::JavaRef<jobject>& object, |
| 42 const base::android::JavaRef<jclass>& safe_annotation_clazz); | 42 const base::android::JavaRef<jclass>& safe_annotation_clazz); |
| 43 void RemoveNamedObject(const std::string& name); | 43 void RemoveNamedObject(const std::string& name); |
| 44 void SetAllowObjectContentsInspection(bool allow); | 44 void SetAllowObjectContentsInspection(bool allow); |
| 45 | 45 |
| 46 // WebContentsObserver | 46 // WebContentsObserver |
| 47 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; | 47 void RenderFrameCreated(RenderFrameHost* render_frame_host) override; |
| 48 void DocumentAvailableInMainFrame() override; | 48 void DocumentAvailableInMainFrame() override; |
| 49 void WebContentsDestroyed() override; | 49 void WebContentsDestroyed() override; |
| 50 void RenderProcessGone(base::TerminationStatus status) override; |
| 51 void RenderViewHostChanged(RenderViewHost* old_host, |
| 52 RenderViewHost* new_host) override; |
| 50 | 53 |
| 51 // GinJavaMethodInvocationHelper::DispatcherDelegate | 54 // GinJavaMethodInvocationHelper::DispatcherDelegate |
| 52 JavaObjectWeakGlobalRef GetObjectWeakRef( | 55 JavaObjectWeakGlobalRef GetObjectWeakRef( |
| 53 GinJavaBoundObject::ObjectID object_id) override; | 56 GinJavaBoundObject::ObjectID object_id) override; |
| 54 | 57 |
| 55 // Run on the background thread. | 58 // Run on the background thread. |
| 56 void OnGetMethods(GinJavaBoundObject::ObjectID object_id, | 59 void OnGetMethods(GinJavaBoundObject::ObjectID object_id, |
| 57 std::set<std::string>* returned_method_names); | 60 std::set<std::string>* returned_method_names); |
| 58 void OnHasMethod(GinJavaBoundObject::ObjectID object_id, | 61 void OnHasMethod(GinJavaBoundObject::ObjectID object_id, |
| 59 const std::string& method_name, | 62 const std::string& method_name, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 118 |
| 116 // The following objects are only used on the background thread. | 119 // The following objects are only used on the background thread. |
| 117 bool allow_object_contents_inspection_; | 120 bool allow_object_contents_inspection_; |
| 118 | 121 |
| 119 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeDispatcherHost); | 122 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeDispatcherHost); |
| 120 }; | 123 }; |
| 121 | 124 |
| 122 } // namespace content | 125 } // namespace content |
| 123 | 126 |
| 124 #endif // CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_HOST_H_ | 127 #endif // CONTENT_BROWSER_ANDROID_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_HOST_H_ |
| OLD | NEW |