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

Issue 2751293002: Refactor WebBluetoothServiceClient in the web_bluetooth.mojom (another version) (Closed)

Created:
3 years, 9 months ago by juncai
Modified:
3 years, 9 months ago
Reviewers:
haraken, scheib, ortuno, dcheng
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, haraken, dglazkov+blink, scheib+watch_chromium.org, ortuno+watch_chromium.org, blink-reviews, darin-cc_chromium.org, darin (slow to review), blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor WebBluetoothServiceClient in the web_bluetooth.mojom (another version) This is another version of: https://codereview.chromium.org/2718583002/ This CL does the same thing as the above CL, but in a different approach. The main difference is in the web_bluetooth.mojom file, for the RemoteServerConnect() and RemoteCharacteristicStartNotifications(), instead of passing back an interface request, this CL just passes an interface pointer to the Bluetooth service implementation. This CL changes the WebBluetoothServiceClient in the web_bluetooth.mojom into two clients: WebBluetoothCharacteristicClient WebBluetoothServerClient BUG=682050

Patch Set 1 : Refactor WebBluetoothServiceClient in the web_bluetooth.mojom (another version) #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -271 lines) Patch
M content/browser/bluetooth/frame_connected_bluetooth_devices.h View 4 chunks +5 lines, -2 lines 0 comments Download
M content/browser/bluetooth/frame_connected_bluetooth_devices.cc View 6 chunks +25 lines, -5 lines 0 comments Download
M content/browser/bluetooth/frame_connected_bluetooth_devices_unittest.cc View 19 chunks +76 lines, -34 lines 4 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.h View 6 chunks +6 lines, -6 lines 0 comments Download
M content/browser/bluetooth/web_bluetooth_service_impl.cc View 13 chunks +57 lines, -19 lines 0 comments Download
A third_party/WebKit/LayoutTests/bluetooth/server/disconnect/disconnect-after-request-disconnection.html View 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/Bluetooth.h View 3 chunks +2 lines, -39 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp View 3 chunks +1 line, -59 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h View 2 chunks +1 line, -17 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp View 3 chunks +2 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.h View 5 chunks +9 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTCharacteristic.cpp View 6 chunks +11 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.h View 4 chunks +36 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp View 5 chunks +58 lines, -9 lines 2 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom View 4 chunks +18 lines, -17 lines 2 comments Download

Messages

Total messages: 14 (9 generated)
juncai
Please take a look.
3 years, 9 months ago (2017-03-16 01:28:18 UTC) #7
scheib
I think this does look cleaner. Why didn't you upload the patch to the previous ...
3 years, 9 months ago (2017-03-16 06:08:51 UTC) #10
haraken
Drive-by https://codereview.chromium.org/2751293002/diff/1/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp File third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp (right): https://codereview.chromium.org/2751293002/diff/1/third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp#newcode36 third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp:36: DisconnectIfConnected(); Do we want to call Dispose() as ...
3 years, 9 months ago (2017-03-16 08:39:44 UTC) #12
juncai
I moved this CL to: https://codereview.chromium.org/2718583002/ I also addressed this CL's comments in the above ...
3 years, 9 months ago (2017-03-16 18:06:24 UTC) #13
juncai
3 years, 9 months ago (2017-03-16 18:07:03 UTC) #14
On 2017/03/16 06:08:51, scheib wrote:
> I think this does look cleaner. Why didn't you upload the patch to the
previous
> review?

Thanks! I moved this CL to:
https://codereview.chromium.org/2718583002/

Powered by Google App Engine
This is Rietveld 408576698