Index: content/browser/android/java/gin_java_bridge_message_filter.h |
diff --git a/content/browser/android/java/gin_java_bridge_message_filter.h b/content/browser/android/java/gin_java_bridge_message_filter.h |
index 40165a81d1d6c1c70b8e31f11b7da61ddc4277db..ee5051af76be88a8ec16321f81c6039e104c0784 100644 |
--- a/content/browser/android/java/gin_java_bridge_message_filter.h |
+++ b/content/browser/android/java/gin_java_bridge_message_filter.h |
@@ -45,6 +45,11 @@ class GinJavaBridgeMessageFilter : public BrowserMessageFilter { |
static scoped_refptr<GinJavaBridgeMessageFilter> FromHost( |
GinJavaBridgeDispatcherHost* host, bool create_if_not_exists); |
+ // Removes the filter, which triggers its deletion. Needs to be called when |
+ // the corresponding RenderProcessHost cleans itself up, e.g. on renderer |
+ // process exit. |
+ static void RemoveFilter(GinJavaBridgeDispatcherHost* host); |
+ |
private: |
friend class BrowserThread; |
friend class base::DeleteHelper<GinJavaBridgeMessageFilter>; |