Closed Bug 1790401 Opened 3 years ago Closed 3 years ago

Outgoing WebTransportStream management

Categories

(Core :: Networking, task, P2)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: kershaw, Assigned: kershaw)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

We will implement the function CreateOutgoingBidirectionalStream and CreateOutgoingUnidirectionalStream in nsIWebTransport interface below.

interface nsIWebTransport {
  // When called, perform steps in "Initialization WebTransport over HTTP".
  void AsyncConnect(in nsIURI aURI,
                    in OriginAttributes aOriginAttributes,
                    in WebTransportSessionEventListener aListener);
  // Asynchronously get states.
  void GetStats();

  // Close the session.
  void CloseSession(in uint32_t aErrorCode,
                    in ACString aReason);

  // Create and open a new WebTransport stream. The function requires
  // the nsIWebTransportStreamCallback parameter. The result will be
  // delivered via the callback.
  void CreateOutgoingBidirectionalStream(in nsIWebTransportStreamCallback aCallback);
  void CreateOutgoingUnidirectionalStream(in nsIWebTransportStreamCallback aCallback);

  bool SendDatagram(in AUTF8String aDatagram);
};

// This interface is used as a callback when creating an outgoing
// unidirectional or bidirectional stream.
interface nsIWebTransportStreamCallback {
  void OnStreamReady(in nsIWebTransportSendStream aStream);
  
  void OnError(in uint8_t aError);
};
Assignee: nobody → kershaw
Pushed by kjang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ce2291439b81 Implement the creation of outgoing WebTransport stream, r=necko-reviewers,valentin

Backed out 2 changesets (Bug 1790401, Bug 1790402) for causing bustages on WebTransportStreamProxy.h.
Backout link
Push with failures <--> Bp-hybrid
Failure Log
Also Bb Failure Log

Flags: needinfo?(kershaw)
Pushed by kjang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1c84926b18f8 Implement the creation of outgoing WebTransport stream, r=necko-reviewers,valentin
Pushed by ctuns@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/022dc09c27b1 static_cast<uint32_t> an nsresult formated to hex with PRIx32 to fix build bustage with gcc -Werror=format=
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Regressions: 1799843
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: