WebAPI/PresentationAPI:CoreService

From MozillaWiki
< WebAPI
Revision as of 09:32, 24 March 2016 by Junior Hsu (talk | contribs) (add some description of classes)
Jump to navigation Jump to search

Introduction

The page explains the implementation detail of core service.

Architecture

  • PresentationService

A mediator among WebAPI classes, IPC and |PresentationSessionInfo|.

Live in Chrome Process.

  • PresentationSessionInfo

Maintain grotty details around session transports, receiver page and connection state.

Session infos use the established control channel to negotiate the SDP of session transport and create a transport builder to do the transport establishment.

Two subclasses, |PresentationControllingInfo| and |PresentationPresentingInfo|, stands for the controller and presenter. Presenting info will establish the transport after the receiver's page ready.

Live in Chrome Process.

  • PresentationSessionTransport

Maintain the underlying transport. We have TCP transport now and work on RTCDataChannel transport.

TCP transport lives in Chrome process. RTCDataChannel lives with the DOM. That is, live in content process in e10s mode.

  • PresentationIPCService
  • PresentationIPCSessionInfo

Call Flow Example

Controller Transport Establishment

Establishing OOP DataChannel Transport

Receiver Establishment