how blink communicates with network?

53 views
Skip to first unread message

sangitac...@gmail.com

unread,
Mar 10, 2014, 8:15:59 AM3/10/14
to blin...@chromium.org
Hi Guys,

I want to know whether blink has its own networking stack or it uses chrome networking stack - "http://www.chromium.org/developers/design-documents/network-stack"
I have confused because I have seen page - "http://www.chromium.org/blink/blink-network-stack".
I am testing with Android- Kitkat, chrome networking stack is not hitting with chrome browser. Can anybody help me for this?

Regards,
Sangeeta

PhistucK

unread,
Mar 10, 2014, 8:25:28 AM3/10/14
to sangitac...@gmail.com, blink-dev
Blink does not have a network stack, it relies on the network stack of Chromium.
I am not sure about the network stack architecture of Chromium for Android, though. I think Chrome for Android has its own still, but the Android KitKat WebView version is different in this regard (for example, uses the system OpenSSL).


PhistucK


To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.

Takeshi Yoshino

unread,
Mar 10, 2014, 10:31:49 AM3/10/14
to PhistucK, sangitac...@gmail.com, blink-dev
On Mon, Mar 10, 2014 at 9:25 PM, PhistucK <phis...@gmail.com> wrote:
Blink does not have a network stack, it relies on the network stack of Chromium.

Right. But please see inlined comment below.
 
I am not sure about the network stack architecture of Chromium for Android, though. I think Chrome for Android has its own still, but the Android KitKat WebView version is different in this regard (for example, uses the system OpenSSL).


PhistucK


On Mon, Mar 10, 2014 at 2:15 PM, <sangitac...@gmail.com> wrote:
Hi Guys,

I want to know whether blink has its own networking stack or it uses chrome networking stack - "http://www.chromium.org/developers/design-documents/network-stack"
I have confused because I have seen page - "http://www.chromium.org/blink/blink-network-stack".

This site is about networking related code in Blink. For web platform APIs such as XHR, WebSocket and EventSource, Blink side network code can also be considered as a part of network stack, so we called it "Blink network stack". Sorry about the confusion. Blink doesn't directly touch platform's low level networking API (e.g BSD socket). Blink has APIs representing abstracted networking operation (e.g. blink::WebURLLoader for resource loading including HTTP) and platform code (e.g. Chromium's content::WebURLLoaderImpl) implements the interface and performs actual network communication.

WebSocket is a bit different. We've implemented most of protocol processing (framing, parsing/generating raw handshake bytes) in Blink and Chromium provided just a pipe for binary stream. So, it's more natural to say the WebSocket network stack is in Blink.
Reply all
Reply to author
Forward
0 new messages