summaryrefslogtreecommitdiffstats
path: root/content/browser/tab_contents
diff options
context:
space:
mode:
authorsteveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-08 20:45:46 +0000
committersteveblock@chromium.org <steveblock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-08 20:45:46 +0000
commit276b37a257855a3d01091831bdf8dde07e78f74e (patch)
tree23353644f70f801141be464a054272152d2ae6e6 /content/browser/tab_contents
parent4a22ade1069e2f3236d4bf76b765314fec1e9fc9 (diff)
downloadchromium_src-276b37a257855a3d01091831bdf8dde07e78f74e.zip
chromium_src-276b37a257855a3d01091831bdf8dde07e78f74e.tar.gz
chromium_src-276b37a257855a3d01091831bdf8dde07e78f74e.tar.bz2
Fix JavaBridgeDispatcherHostManager when no RenderViewHosts are present
Objects may be added to the JavaBridgeDispatcherHostManager before any RenderViewHosts are present. This means that we need to take a reference to the object to keep it alive until a RenderViewHost becomes present. Also adds a method to TabContents to access the JavaBridgeDispatcherHostManager. BUG=96703 Review URL: http://codereview.chromium.org/8501007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109093 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/tab_contents')
-rw-r--r--content/browser/tab_contents/tab_contents.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/browser/tab_contents/tab_contents.h b/content/browser/tab_contents/tab_contents.h
index 64eec1e..37dc8c3 100644
--- a/content/browser/tab_contents/tab_contents.h
+++ b/content/browser/tab_contents/tab_contents.h
@@ -464,6 +464,10 @@ class CONTENT_EXPORT TabContents : public PageNavigator,
// locked.
bool GotResponseToLockMouseRequest(bool allowed);
+ JavaBridgeDispatcherHostManager* java_bridge_dispatcher_host_manager() const {
+ return java_bridge_dispatcher_host_manager_.get();
+ }
+
protected:
friend class TabContentsObserver;