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

Issue 8890018: Update Java Bridge to use its own thread in the browser process (Closed)

Created:
9 years ago by Steve Block
Modified:
9 years ago
Reviewers:
joth, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Update Java Bridge to use its own thread in the browser process Currently the Java Bridge uses the WEBKIT thread to manipulate injected objects in the browser process. However, the WEBKIT thread is not set up when the renderer is run in-process, and it may be deprecated. This change adds a new background thread in JavaBridgeDispatcherHost, and updates the JavaBridge to use it in place of the WEBKIT thread. BUG=106838 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114011

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use local background thread #

Patch Set 3 : Remove superfluous header #

Total comments: 8

Patch Set 4 : Use class rather than traits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -23 lines) Patch
M content/browser/renderer_host/java/java_bridge_channel_host.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/java/java_bridge_dispatcher_host.h View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/java/java_bridge_dispatcher_host.cc View 1 2 3 6 chunks +23 lines, -14 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Steve Block
Note that this is based on top of http://codereview.chromium.org/8834013
9 years ago (2011-12-08 16:53:26 UTC) #1
joth
couple quick questions. http://codereview.chromium.org/8890018/diff/1/content/browser/browser_main_loop.h File content/browser/browser_main_loop.h (right): http://codereview.chromium.org/8890018/diff/1/content/browser/browser_main_loop.h#newcode89 content/browser/browser_main_loop.h:89: scoped_ptr<BrowserProcessSubThread> java_bridge_thread_; I was wondering whether ...
9 years ago (2011-12-08 18:25:54 UTC) #2
Steve Block
http://codereview.chromium.org/8890018/diff/1/content/browser/browser_main_loop.h File content/browser/browser_main_loop.h (right): http://codereview.chromium.org/8890018/diff/1/content/browser/browser_main_loop.h#newcode89 content/browser/browser_main_loop.h:89: scoped_ptr<BrowserProcessSubThread> java_bridge_thread_; Yeah, I thought about this, but if ...
9 years ago (2011-12-09 12:39:10 UTC) #3
Steve Block
9 years ago (2011-12-09 15:11:51 UTC) #4
joth
This lgtm with some nits for the purpose of moving forward, but one comment about ...
9 years ago (2011-12-09 16:26:08 UTC) #5
Steve Block
http://codereview.chromium.org/8890018/diff/6001/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc File content/browser/renderer_host/java/java_bridge_dispatcher_host.cc (right): http://codereview.chromium.org/8890018/diff/6001/content/browser/renderer_host/java/java_bridge_dispatcher_host.cc#newcode25 content/browser/renderer_host/java/java_bridge_dispatcher_host.cc:25: base::Thread* thread = new (instance) base::Thread("Java Bridge"); On 2011/12/09 ...
9 years ago (2011-12-09 17:36:26 UTC) #6
jam
lgtm
9 years ago (2011-12-10 00:08:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/steveblock@chromium.org/8890018/10002
9 years ago (2011-12-12 11:18:40 UTC) #8
commit-bot: I haz the power
9 years ago (2011-12-12 12:34:58 UTC) #9
Change committed as 114011

Powered by Google App Engine
This is Rietveld 408576698