Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(474)

Issue 8366034: Adds browser-side component of Java Bridge for a TabContents (Closed)

Created:
9 years, 2 months ago by Steve Block
Modified:
9 years, 2 months ago
Reviewers:
jam
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Adds browser-side component of Java Bridge for a TabContents This patch adds JavaBridgeDispatcherHostManager, which co-ordinates injecting Java objects into all RenderViews corresponding to a TabContents. The class is owned by TabContents and manages one instance of JavaBridgeDispatcherHost for each RenderViewHost. Also adds TabContentsObserver::RenderViewDeleted(). BUG=96703 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107085

Patch Set 1 #

Patch Set 2 : Fixed virtual destructor and bogus DCHECK #

Patch Set 3 : Fixed another bugus assert #

Total comments: 5

Patch Set 4 : Guards with ENABLE_JAVA_BRIDGE and addresses other comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -0 lines) Patch
A content/browser/renderer_host/java_bridge_dispatcher_host_manager.h View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A content/browser/renderer_host/java_bridge_dispatcher_host_manager.cc View 1 2 3 1 chunk +76 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents_observer.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents_observer.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Steve Block
9 years, 2 months ago (2011-10-21 12:38:09 UTC) #1
jam
http://codereview.chromium.org/8366034/diff/3001/content/browser/renderer_host/java_bridge_dispatcher_host_manager.cc File content/browser/renderer_host/java_bridge_dispatcher_host_manager.cc (right): http://codereview.chromium.org/8366034/diff/3001/content/browser/renderer_host/java_bridge_dispatcher_host_manager.cc#newcode54 content/browser/renderer_host/java_bridge_dispatcher_host_manager.cc:54: DCHECK(render_view_host); this isn't necessary http://codereview.chromium.org/8366034/diff/3001/content/browser/renderer_host/java_bridge_dispatcher_host_manager.h File content/browser/renderer_host/java_bridge_dispatcher_host_manager.h (right): http://codereview.chromium.org/8366034/diff/3001/content/browser/renderer_host/java_bridge_dispatcher_host_manager.h#newcode14 ...
9 years, 2 months ago (2011-10-21 16:18:20 UTC) #2
Steve Block
http://codereview.chromium.org/8366034/diff/3001/content/browser/tab_contents/tab_contents.cc File content/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/8366034/diff/3001/content/browser/tab_contents/tab_contents.cc#newcode214 content/browser/tab_contents/tab_contents.cc:214: java_bridge_dispatcher_host_manager_.reset( No, this isn't needed unless we want to ...
9 years, 2 months ago (2011-10-21 16:27:47 UTC) #3
jam
On 2011/10/21 16:27:47, Steve Block wrote: > http://codereview.chromium.org/8366034/diff/3001/content/browser/tab_contents/tab_contents.cc > File content/browser/tab_contents/tab_contents.cc (right): > > http://codereview.chromium.org/8366034/diff/3001/content/browser/tab_contents/tab_contents.cc#newcode214 ...
9 years, 2 months ago (2011-10-21 21:14:23 UTC) #4
Steve Block
> I think it would be nice to not compile in this code for platforms ...
9 years, 2 months ago (2011-10-24 12:54:36 UTC) #5
Steve Block
Ready for another look
9 years, 2 months ago (2011-10-24 23:35:45 UTC) #6
jam
9 years, 2 months ago (2011-10-25 00:10:12 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698