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

Issue 1228283003: Attach a WebBluetooth to the LocalFrame and use it if it's available. (Closed)

Created:
5 years, 5 months ago by Jeffrey Yasskin
Modified:
5 years, 5 months ago
CC:
blink-reviews, dglazkov+blink, ortuno, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@error-enum-cleanup
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Attach a WebBluetooth to the LocalFrame and use it if it's available. This lets us move the Bluetooth implementation from content/child to content/renderer, which lets us plumb the RenderFrame's ID through Blink. We also add an error enum for content/ to use if the frame ID is wrong. This is the first of a 3-patch sequence: 1. Attach a frame-specific WebBluetooth in Blink. (This patch) 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. (https://codereview.chromium.org/1228113004) BUG=500989 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199067

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add explicit. #

Total comments: 5

Patch Set 3 : Fix Vince's comments. #

Patch Set 4 : Always use BluetoothSupplement to get the WebBluetooth instance. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -14 lines) Patch
M Source/modules/bluetooth/Bluetooth.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/bluetooth/BluetoothDevice.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/bluetooth/BluetoothError.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTRemoteServer.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/bluetooth/BluetoothGATTService.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A Source/modules/bluetooth/BluetoothSupplement.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A Source/modules/bluetooth/BluetoothSupplement.cpp View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 2 chunks +3 lines, -0 lines 0 comments Download
M public/platform/modules/bluetooth/WebBluetoothError.h View 1 chunk +1 line, -0 lines 0 comments Download
M public/web/WebFrameClient.h View 2 chunks +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228283003/1
5 years, 5 months ago (2015-07-15 07:22:59 UTC) #2
Jeffrey Yasskin
Jochen, you're in charge of Source/web/WebLocalFrameImpl.cpp and public/web/WebFrameClient.h, but can you also double-check that BluetoothSupplement ...
5 years, 5 months ago (2015-07-15 07:30:13 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-15 08:42:22 UTC) #6
jochen (gone - plz use gerrit)
lgtm for api bits +haraken for oilpan question https://codereview.chromium.org/1228283003/diff/1/Source/modules/bluetooth/BluetoothSupplement.h File Source/modules/bluetooth/BluetoothSupplement.h (right): https://codereview.chromium.org/1228283003/diff/1/Source/modules/bluetooth/BluetoothSupplement.h#newcode14 Source/modules/bluetooth/BluetoothSupplement.h:14: class ...
5 years, 5 months ago (2015-07-15 13:45:27 UTC) #8
haraken
oilpan part LGTM https://codereview.chromium.org/1228283003/diff/1/Source/modules/bluetooth/BluetoothSupplement.h File Source/modules/bluetooth/BluetoothSupplement.h (right): https://codereview.chromium.org/1228283003/diff/1/Source/modules/bluetooth/BluetoothSupplement.h#newcode14 Source/modules/bluetooth/BluetoothSupplement.h:14: class BLINK_EXPORT BluetoothSupplement : public NoBaseWillBeGarbageCollected<BluetoothSupplement>, ...
5 years, 5 months ago (2015-07-15 13:55:04 UTC) #9
Jeffrey Yasskin
https://codereview.chromium.org/1228283003/diff/1/Source/modules/bluetooth/BluetoothSupplement.h File Source/modules/bluetooth/BluetoothSupplement.h (right): https://codereview.chromium.org/1228283003/diff/1/Source/modules/bluetooth/BluetoothSupplement.h#newcode14 Source/modules/bluetooth/BluetoothSupplement.h:14: class BLINK_EXPORT BluetoothSupplement : public NoBaseWillBeGarbageCollected<BluetoothSupplement>, public WillBeHeapSupplement<LocalFrame> { ...
5 years, 5 months ago (2015-07-15 17:19:33 UTC) #10
scheib
LGTM w some requests for readability. https://codereview.chromium.org/1228283003/diff/20001/Source/modules/bluetooth/BluetoothSupplement.h File Source/modules/bluetooth/BluetoothSupplement.h (right): https://codereview.chromium.org/1228283003/diff/20001/Source/modules/bluetooth/BluetoothSupplement.h#newcode14 Source/modules/bluetooth/BluetoothSupplement.h:14: class BLINK_EXPORT BluetoothSupplement ...
5 years, 5 months ago (2015-07-16 01:03:03 UTC) #11
Jeffrey Yasskin
I updated this to support moving content/child/bluetooth to content/renderer/bluetooth. Once the content/ implementation is in ...
5 years, 5 months ago (2015-07-16 22:27:14 UTC) #12
scheib
LGTM https://codereview.chromium.org/1228283003/diff/20001/Source/modules/bluetooth/BluetoothSupplement.h File Source/modules/bluetooth/BluetoothSupplement.h (right): https://codereview.chromium.org/1228283003/diff/20001/Source/modules/bluetooth/BluetoothSupplement.h#newcode14 Source/modules/bluetooth/BluetoothSupplement.h:14: class BLINK_EXPORT BluetoothSupplement : public NoBaseWillBeGarbageCollected<BluetoothSupplement>, public WillBeHeapSupplement<LocalFrame> ...
5 years, 5 months ago (2015-07-16 23:04:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228283003/60001
5 years, 5 months ago (2015-07-16 23:08:29 UTC) #16
commit-bot: I haz the power
5 years, 5 months ago (2015-07-17 00:29:57 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199067

Powered by Google App Engine
This is Rietveld 408576698