Closed
Bug 904542
Opened 11 years ago
Closed 7 years ago
[meta] B2G NetworkManager: Redefine the nsINetworkInterface
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(feature-b2g:3.0?, tracking-b2g:backlog)
RESOLVED
WONTFIX
People
(Reporter: edgar, Unassigned)
References
Details
(Whiteboard: [grooming])
Attachments
(7 files, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
vchang
:
feedback+
|
Details | Diff | Splinter Review |
To let NetworkManager can control each network, we should have connect()/disconnect() in nsINetworkInterface. And we also put all information which is needed by other module into nsINetworkInfo. So that we could just expose nsINetworkInfo instead of whole nsINetworkInterface, because we should not expose connect() and disconnect() outside NetworkManager. The redefined nsINetworkInterface as below: interface nsINetworkInterface { readonly attribute nsINetworkInfoinfo; readonly attribute nsIDOMString[] hostRoutes; readonly attribute DOMString httpProxyHost; readonly attribute long httpProxyPort; void connect(); void disconnect(); attribute nsIDOMEventListener onnetworkinfochanged; } interface nsINetworkInfo { readonly attribute long type; /* WIFI/MOBILE/MMS/SUPL */ readonly attribute long serviceId; /* Mulit-SIM */ readonly attribute long state; readonly attribute DOMString name; /* Interface name */ readonly attribute DOMString ip; readonly attribute DOMString netmask; readonly attribute DOMString broadcast; readonly attribute DOMString gateway; readonly attribute DOMString dns1; readonly attribute DOMString dns2; }
Reporter | ||
Comment 1•11 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #0) > > interface nsINetworkInfo { > readonly attribute long type; /* WIFI/MOBILE/MMS/SUPL */ Maybe we could consider use DOMString for type. In this way, we could get some advantage as below: 1. For the network interface of RIL, we can use the type in apn setting directly. So that we don't need to have a mapping between apn type and the const, NETWORK_TYPE_*. 2. If a new network is added, we don't have to add a new const for it. > readonly attribute long serviceId; /* Mulit-SIM */ > readonly attribute long state; > readonly attribute DOMString name; /* Interface name */ > readonly attribute DOMString ip; > readonly attribute DOMString netmask; > readonly attribute DOMString broadcast; > readonly attribute DOMString gateway; > readonly attribute DOMString dns1; > readonly attribute DOMString dns2; > }
Reporter | ||
Comment 2•11 years ago
|
||
About the comment #1, I will file a new bug for that, for now we still use long for network type.
Reporter | ||
Comment 4•11 years ago
|
||
Reporter | ||
Comment 5•11 years ago
|
||
Reporter | ||
Comment 6•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Attachment #796578 -
Attachment description: WIP, Part3: Gps, v1 → WIP, Part 3: Gps, v1
Reporter | ||
Comment 7•11 years ago
|
||
Reporter | ||
Comment 8•11 years ago
|
||
Reporter | ||
Comment 9•11 years ago
|
||
Reporter | ||
Comment 11•11 years ago
|
||
Comment on attachment 797020 [details] [diff] [review] WIP, Part1: Interface changes, v3 Vincent, Vicamo, could you help to give me some feedback about the new nsINetworkInterface? Thanks.
Attachment #797020 -
Flags: feedback?(vyang)
Attachment #797020 -
Flags: feedback?(vchang)
Comment 12•11 years ago
|
||
Comment on attachment 797020 [details] [diff] [review] WIP, Part1: Interface changes, v3 Review of attachment 797020 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/nsINetworkInterface.idl @@ +112,5 @@ > + > + /** > + * This event is fired when the info of network interface is changed. > + */ > + attribute nsIDOMEventListener onnetworkinfochanged; Wifi supports http proxy for different ssid. So the proxy server ip and port may change when connect to different AP. Do we want to pass updated parameters when connection status change ?
Attachment #797020 -
Flags: feedback?(vchang) → feedback+
Reporter | ||
Comment 13•11 years ago
|
||
Comment on attachment 797020 [details] [diff] [review] WIP, Part1: Interface changes, v3 Because we still have a lot of things under discussion, so cancel the feedback request first.
Attachment #797020 -
Flags: feedback?(vyang)
Reporter | ||
Updated•11 years ago
|
Component: General → RIL
Comment 16•10 years ago
|
||
(In reply to Anshul from comment #15) > Hey Wesley, is this bug intended for 2.1? Hey Anshul, no, it's not.
Flags: needinfo?(whuang)
Updated•10 years ago
|
feature-b2g: --- → 2.3?
Updated•10 years ago
|
Whiteboard: [grooming]
Assignee | ||
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
Comment 18•9 years ago
|
||
Per offline discussion with Edgar, we decided to mark this bug as a meta bug, and file sub-bugs to: - put all information needed by other modules into a separate interface - nsINetworkInfo - Add activate()/deactivate in nsINetworkInterface and RIL implementation (probably bug 911713) - Implement nsINetworkInterface.active()/deactive in wifi network interface and other bugs that may come to mind later...
Summary: B2G NetworkManager: Redefine the nsINetworkInterface → [meta] B2G NetworkManager: Redefine the nsINetworkInterface
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Updated•8 years ago
|
Assignee: echen → nobody
Comment 19•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•