Closed
Bug 997137
Opened 12 years ago
Closed 12 years ago
[Bluetooth] Inherit DroidSocketImpl from UnixFDWatcher
Categories
(Firefox OS Graveyard :: Bluetooth, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.0 S2 (23may)
People
(Reporter: tzimmermann, Assigned: tzimmermann)
References
Details
Attachments
(1 file, 1 obsolete file)
|
12.88 KB,
patch
|
tzimmermann
:
review+
|
Details | Diff | Splinter Review |
|UnixFdWatcher| implements most of the infrastructure for maintaining file descritors on the I/O loop. We should use it for making DroidSocketImpl a bit more compatible with UnixSocketConsumer.
| Assignee | ||
Comment 1•12 years ago
|
||
Attachment #8408058 -
Flags: review?(echou)
Comment 2•12 years ago
|
||
Hi Thomas,
I have several 1.3/1.3T/1.4 plus review requests in hand. I'll review once those have been done. :)
Comment 3•12 years ago
|
||
Comment on attachment 8408058 [details] [diff] [review]
[01] Bug 997137: Inherit |DroidSocketImpl| from |UnixFdWatcher|
Review of attachment 8408058 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with nits addressed or questions answered. Sorry for the late review. :)
::: dom/bluetooth/bluedroid/BluetoothSocket.cpp
@@ +7,5 @@
> #include "BluetoothSocket.h"
>
> #include <hardware/bluetooth.h>
> #include <hardware/bt_sock.h>
> +#include <fcntl.h>
super-nit: alphabetic order, please.
@@ +461,2 @@
>
> + if (!(flags&O_NONBLOCK)) {
nit: we may need whitespaces around the '&', couldn't find related rules in the coding style guide, though. (In fact I guess you might tend to do this since you didn't leave blanks around neither '&' nor '|', however personally I prefer adding blanks around).
@@ +692,5 @@
> MOZ_ASSERT(NS_IsMainThread());
> NS_ENSURE_FALSE(mImpl, false);
>
> mIsServer = false;
> + mImpl = new DroidSocketImpl(XRE_GetIOMessageLoop(), this, aDeviceAddress, aChannel, mAuth, mEncrypt);
nit: 80 chars per line, please.
@@ +706,5 @@
> MOZ_ASSERT(NS_IsMainThread());
> NS_ENSURE_FALSE(mImpl, false);
>
> mIsServer = true;
> + mImpl = new DroidSocketImpl(XRE_GetIOMessageLoop(), this, aChannel, mAuth, mEncrypt);
ditto.
Attachment #8408058 -
Flags: review?(echou) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
Changes since v1:
- reordered include statements
- added whitespaces around operators
- wrap lines before 80th column
Attachment #8408058 -
Attachment is obsolete: true
Attachment #8422361 -
Flags: review+
| Assignee | ||
Comment 5•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S2 (23may)
You need to log in
before you can comment on or make changes to this bug.
Description
•