[Android] Use per-renderer message filter instead of per-WebView
commit44650b5abc4430a87cef7952514464730dcb691a
authormnaganov <mnaganov@chromium.org>
Fri, 31 Jul 2015 17:34:40 +0000 (31 10:34 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 31 Jul 2015 17:35:49 +0000 (31 17:35 +0000)
tree9785d7c85a86232a192e1b4671f4a041a346cc74
parenta84d95e7ef81f7c168a60b9ce16c1677e7dbf4bc
[Android] Use per-renderer message filter instead of per-WebView

Address a long-standing TODO for using a single browser message filter
per renderer process (RPH), instead of installing each
GinJavaBridgeDispatcherHost as a filter (that is, for each WebView).

This also required factoring out JavaBridge thread into a separate file,
which has trimmed down the contents of gin_java_bridge_dispatcher_host.cc.

Review URL: https://codereview.chromium.org/1262203002

Cr-Commit-Position: refs/heads/master@{#341360}
content/browser/android/java/gin_java_bound_object.h
content/browser/android/java/gin_java_bridge_dispatcher_host.cc
content/browser/android/java/gin_java_bridge_dispatcher_host.h
content/browser/android/java/gin_java_bridge_message_filter.cc [new file with mode: 0644]
content/browser/android/java/gin_java_bridge_message_filter.h [new file with mode: 0644]
content/browser/android/java/java_bridge_thread.cc [new file with mode: 0644]
content/browser/android/java/java_bridge_thread.h [new file with mode: 0644]
content/content_browser.gypi