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

Issue 9192008: Hook up ContentViewCore.add/removeJavascriptInterface() (Closed)

Created:
8 years, 11 months ago by Steve Block
Modified:
8 years, 4 months ago
Reviewers:
Ted C, joth, Jay Civelli, 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

Hook up ContentViewCore.add/removeJavascriptInterface() The entry point to the Java Bridge is JavaBridgeDispatcherHostManager. This is not part of the content API so is available only on WebContentsImpl, not WebContents. We therefore modify ContentViewCoreImpl to store and use WebContentsImpl*, rather than WebContents*. It's safe for ContentViewCoreImpl to cast the WebContents* it receives in its constructor to WebContentsImpl* because WebContentsImpl is the only concrete implementation of the WebContents interface. BUG=110637 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148951

Patch Set 1 #

Patch Set 2 : Keep impl out of public/ dir #

Patch Set 3 : Hook up to ContentView #

Total comments: 6

Patch Set 4 : Add to ContentViewCore only #

Patch Set 5 : Modify ContentViewCoreImpl to use WebContentsImpl #

Total comments: 12

Patch Set 6 : Addressed comments #

Patch Set 7 : Try again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -3 lines) Patch
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 4 chunks +10 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 4 chunks +28 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 3 chunks +58 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
Steve Block
8 years, 11 months ago (2012-01-19 11:00:25 UTC) #1
Steve Block
avi is OOO
8 years, 11 months ago (2012-01-25 15:33:51 UTC) #2
jam
see http://www.chromium.org/developers/content-module/content-api and other APIs in that directory. Content API, like WebKit API uses pure ...
8 years, 11 months ago (2012-01-25 21:31:09 UTC) #3
Steve Block
> see http://www.chromium.org/developers/content-module/content-api and other APIs > in that directory. Content API, like WebKit API ...
8 years, 11 months ago (2012-01-26 11:09:37 UTC) #4
Steve Block
Sorry for the very delayed reply John. The structure of the Android code has changed ...
8 years, 7 months ago (2012-05-15 11:25:27 UTC) #5
jam
one thing that's not clear to me yet is where will the android code that ...
8 years, 7 months ago (2012-05-16 23:59:20 UTC) #6
Steve Block
Joth, would you mind taking a look at this? I don't think it's impacted by ...
8 years, 5 months ago (2012-07-20 16:39:31 UTC) #7
joth
RE crbug.com/137967 ContentViewClient refactor, yes this is fine as it doesn't touch that class. RE. ...
8 years, 5 months ago (2012-07-20 17:33:53 UTC) #8
Steve Block
http://codereview.chromium.org/9192008/diff/10002/content/public/android/java/src/org/chromium/content/browser/ContentView.java File content/public/android/java/src/org/chromium/content/browser/ContentView.java (right): http://codereview.chromium.org/9192008/diff/10002/content/public/android/java/src/org/chromium/content/browser/ContentView.java#newcode496 content/public/android/java/src/org/chromium/content/browser/ContentView.java:496: * make sure none of your allowed methods allow ...
8 years, 5 months ago (2012-07-23 13:23:15 UTC) #9
Steve Block
John, this is ready for you to take another look. Hopefully this will make more ...
8 years, 5 months ago (2012-07-23 13:25:52 UTC) #10
jam
On 2012/07/23 13:25:52, Steve Block wrote: > John, this is ready for you to take ...
8 years, 5 months ago (2012-07-25 01:51:51 UTC) #11
joth
On 2012/07/25 01:51:51, John Abd-El-Malek wrote: > On 2012/07/23 13:25:52, Steve Block wrote: > > ...
8 years, 5 months ago (2012-07-25 20:22:58 UTC) #12
jam
On 2012/07/25 20:22:58, joth wrote: > On 2012/07/25 01:51:51, John Abd-El-Malek wrote: > > On ...
8 years, 5 months ago (2012-07-25 20:54:14 UTC) #13
Steve Block
> If it's used internally inside content, you can add this on > WebContentsImpl directly ...
8 years, 5 months ago (2012-07-26 17:18:32 UTC) #14
joth
On 2012/07/26 17:18:32, Steve Block wrote: > > If it's used internally inside content, you ...
8 years, 5 months ago (2012-07-26 18:11:13 UTC) #15
Steve Block
I've updated the patch to use the new approach. Will move Java Bridge code to ...
8 years, 4 months ago (2012-07-27 11:25:13 UTC) #16
joth
http://codereview.chromium.org/9192008/diff/28002/content/public/browser/android/content_view_core.h File content/public/browser/android/content_view_core.h (right): http://codereview.chromium.org/9192008/diff/28002/content/public/browser/android/content_view_core.h#newcode40 content/public/browser/android/content_view_core.h:40: // -------------------------------------------------------------------------- does anyone know why these are declared ...
8 years, 4 months ago (2012-07-27 16:59:30 UTC) #17
Ted C
http://codereview.chromium.org/9192008/diff/28002/content/public/browser/android/content_view_core.h File content/public/browser/android/content_view_core.h (right): http://codereview.chromium.org/9192008/diff/28002/content/public/browser/android/content_view_core.h#newcode40 content/public/browser/android/content_view_core.h:40: // -------------------------------------------------------------------------- On 2012/07/27 16:59:30, joth wrote: > does ...
8 years, 4 months ago (2012-07-27 17:11:47 UTC) #18
Ted C
nits! http://codereview.chromium.org/9192008/diff/28002/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): http://codereview.chromium.org/9192008/diff/28002/content/browser/android/content_view_core_impl.cc#newcode26 content/browser/android/content_view_core_impl.cc:26: using base::android::ConvertJavaStringToUTF16; move under AttachCurrentThread http://codereview.chromium.org/9192008/diff/28002/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java ...
8 years, 4 months ago (2012-07-27 18:09:04 UTC) #19
jam
lgtm to be clear, moving the file from one place in the internal content directory ...
8 years, 4 months ago (2012-07-27 23:29:57 UTC) #20
Steve Block
http://codereview.chromium.org/9192008/diff/28002/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): http://codereview.chromium.org/9192008/diff/28002/content/browser/android/content_view_core_impl.cc#newcode26 content/browser/android/content_view_core_impl.cc:26: using base::android::ConvertJavaStringToUTF16; On 2012/07/27 18:09:04, Ted C wrote: > ...
8 years, 4 months ago (2012-07-30 11:45:14 UTC) #21
commit-bot: I haz the power
8 years, 4 months ago (2012-07-30 11:45:33 UTC) #22

Powered by Google App Engine
This is Rietveld 408576698