Index: content/browser/tab_contents/tab_contents.h |
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h |
index 49b9c9f451f709d53691acc50044a00955b37d26..5792c74d2ca15bc374a8f7894e4f20d98b2d93a2 100644 |
--- a/content/browser/tab_contents/tab_contents.h |
+++ b/content/browser/tab_contents/tab_contents.h |
@@ -17,6 +17,7 @@ |
#include "base/string16.h" |
#include "content/browser/download/save_package.h" |
#include "content/browser/javascript_dialogs.h" |
+#include "content/browser/renderer_host/java_bridge_dispatcher_host_manager.h" |
#include "content/browser/renderer_host/render_view_host_delegate.h" |
#include "content/browser/tab_contents/navigation_controller.h" |
#include "content/browser/tab_contents/navigation_entry.h" |
@@ -746,6 +747,14 @@ class CONTENT_EXPORT TabContents : public PageNavigator, |
// Manages creation and swapping of render views. |
RenderViewHostManager render_manager_; |
+ // Manages injecting Java objects into all RVHs associated with this TC. |
+ // TODO: It would be good if this was instantiated lazilly. But we need it to |
+ // track all new RVHs, so that when the first object is injected, it can add |
+ // it to them all. Fixing this would be tricky, and the class is fairly |
+ // lightweight anyway. |
+ scoped_ptr<JavaBridgeDispatcherHostManager> |
+ java_bridge_dispatcher_host_manager_; |
+ |
// SavePackage, lazily created. |
scoped_refptr<SavePackage> save_package_; |