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

Issue 1228113004: Put the RenderFrame's ID into a per-frame WebBluetooth, and plumb that back to the browser. (Closed)

Created:
5 years, 5 months ago by Jeffrey Yasskin
Modified:
5 years, 5 months ago
CC:
ortuno, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@store-request-device-state-in-dispatcher
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Put the RenderFrame's ID into a per-frame WebBluetooth, and plumb that back to the browser. This lets us look up the right RenderFrameHost, so we can find the site's origin and attach the requestDevice dialog to the right tab. This is the third of a 3-patch sequence: 1. Attach a frame-specific WebBluetooth in Blink. (https://codereview.chromium.org/1228283003) 2. Move Web Bluetooth from content/child/ to content/renderer/ (https://codereview.chromium.org/1234413006/) 3. Put the RenderFrame's ID in that WebBluetooth and plumb it back to the browser. (This patch) BUG=500989 Committed: https://crrev.com/7aa22257bc748edd0dfab2e04df87fa251492f6e Cr-Commit-Position: refs/heads/master@{#339600}

Patch Set 1 : Initial #

Total comments: 2

Patch Set 2 : Remove mention of frames from content/child. #

Total comments: 9

Patch Set 3 : Rebase onto the move to renderer/, and undo the frame_routing_id name change. #

Patch Set 4 : Rebase off of the requestDevice session change too #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -18 lines) Patch
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 2 4 3 chunks +4 lines, -1 line 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 2 3 4 3 chunks +16 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/bluetooth/bluetooth_messages.h View 2 1 chunk +2 lines, -7 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/bluetooth/web_bluetooth_impl.cc View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (5 generated)
Jeffrey Yasskin
PTAL. No rush, as I won't be able to get back to this until Thursday. ...
5 years, 5 months ago (2015-07-15 07:40:45 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1228113004/diff/20001/content/child/bluetooth/web_bluetooth_impl.cc File content/child/bluetooth/web_bluetooth_impl.cc (right): https://codereview.chromium.org/1228113004/diff/20001/content/child/bluetooth/web_bluetooth_impl.cc#newcode20 content/child/bluetooth/web_bluetooth_impl.cc:20: frame_routing_id_(frame_routing_id) { stuff in child/ shouldn't know about frames. ...
5 years, 5 months ago (2015-07-15 13:40:55 UTC) #4
Jeffrey Yasskin
https://codereview.chromium.org/1228113004/diff/20001/content/child/bluetooth/web_bluetooth_impl.cc File content/child/bluetooth/web_bluetooth_impl.cc (right): https://codereview.chromium.org/1228113004/diff/20001/content/child/bluetooth/web_bluetooth_impl.cc#newcode20 content/child/bluetooth/web_bluetooth_impl.cc:20: frame_routing_id_(frame_routing_id) { On 2015/07/15 13:40:55, jochen wrote: > stuff ...
5 years, 5 months ago (2015-07-15 15:47:17 UTC) #5
jochen (gone - plz use gerrit)
ok, then call it routing id, so it doesn't imply that it corresponds to a ...
5 years, 5 months ago (2015-07-15 15:53:16 UTC) #6
jochen (gone - plz use gerrit)
On 2015/07/15 at 15:53:16, jochen wrote: > ok, then call it routing id, so it ...
5 years, 5 months ago (2015-07-15 15:53:37 UTC) #7
Jeffrey Yasskin
On 2015/07/15 15:53:37, jochen wrote: > On 2015/07/15 at 15:53:16, jochen wrote: > > ok, ...
5 years, 5 months ago (2015-07-15 16:23:21 UTC) #8
Tom Sepez
LGTM on the messages (once you figure out how the ID works).
5 years, 5 months ago (2015-07-15 16:57:27 UTC) #9
Jeffrey Yasskin
On 2015/07/15 15:53:16, jochen wrote: > ok, then call it routing id, so it doesn't ...
5 years, 5 months ago (2015-07-15 17:16:19 UTC) #10
ortuno
https://codereview.chromium.org/1228113004/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1228113004/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode192 content/browser/bluetooth/bluetooth_dispatcher_host.cc:192: RequestDeviceSession(int frame_routing_id, This is called frame_routing_id but you call ...
5 years, 5 months ago (2015-07-15 23:00:46 UTC) #12
scheib
LGTM, but again understand-ability (especially without looking up this particular patch set that introduces the ...
5 years, 5 months ago (2015-07-16 01:11:46 UTC) #13
jochen (gone - plz use gerrit)
you can get a routing ID via RenderThreadImpl::GenerateRoutingID() since you're interacting with the frame on ...
5 years, 5 months ago (2015-07-16 10:51:55 UTC) #14
Jeffrey Yasskin
On 2015/07/16 10:51:55, jochen wrote: > since you're interacting with the frame on the browser ...
5 years, 5 months ago (2015-07-16 17:15:11 UTC) #15
jochen (gone - plz use gerrit)
lgtm then
5 years, 5 months ago (2015-07-16 17:16:41 UTC) #16
Jeffrey Yasskin
https://codereview.chromium.org/1228113004/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1228113004/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode192 content/browser/bluetooth/bluetooth_dispatcher_host.cc:192: RequestDeviceSession(int frame_routing_id, On 2015/07/15 23:00:46, ortuno wrote: > This ...
5 years, 5 months ago (2015-07-17 01:32:44 UTC) #17
scheib
LGTM still
5 years, 5 months ago (2015-07-17 19:19:17 UTC) #18
Jeffrey Yasskin
https://codereview.chromium.org/1228113004/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1228113004/diff/40001/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode241 content/browser/bluetooth/bluetooth_dispatcher_host.cc:241: DLOG(WARNING) On 2015/07/17 01:32:44, Jeffrey Yasskin wrote: > On ...
5 years, 5 months ago (2015-07-21 00:47:05 UTC) #19
ortuno
lgtm
5 years, 5 months ago (2015-07-21 00:49:33 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228113004/100001
5 years, 5 months ago (2015-07-21 01:22:09 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 5 months ago (2015-07-21 02:40:36 UTC) #24
commit-bot: I haz the power
5 years, 5 months ago (2015-07-21 02:41:26 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/7aa22257bc748edd0dfab2e04df87fa251492f6e
Cr-Commit-Position: refs/heads/master@{#339600}

Powered by Google App Engine
This is Rietveld 408576698