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