Closed Bug 997137 Opened 12 years ago Closed 12 years ago

[Bluetooth] Inherit DroidSocketImpl from UnixFDWatcher

Categories

(Firefox OS Graveyard :: Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S2 (23may)

People

(Reporter: tzimmermann, Assigned: tzimmermann)

References

Details

Attachments

(1 file, 1 obsolete file)

|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.
Blocks: 992206
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 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+
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+
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.

Attachment

General

Created:
Updated:
Size: