Commit de92fbd7 authored by Adam Rice's avatar Adam Rice Committed by Commit Bot

QuicTransport: Fix type of offset_ in OutgoingStream

Correctly support >4GB ArrayBuffers by using a 64-bit value for
OutgoingStream::offset_ on 64-bit platforms.

BUG=1011392

Change-Id: I9efe9ec014191ba8d8825085a6f0b314f6c33f4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033007Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738851}
parent 01c99df0
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBTRANSPORT_OUTGOING_STREAM_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_WEBTRANSPORT_OUTGOING_STREAM_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBTRANSPORT_OUTGOING_STREAM_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_WEBTRANSPORT_OUTGOING_STREAM_H_
#include <stddef.h>
#include <stdint.h> #include <stdint.h>
#include "base/containers/span.h" #include "base/containers/span.h"
...@@ -18,7 +19,6 @@ ...@@ -18,7 +19,6 @@
#include "third_party/blink/renderer/modules/modules_export.h" #include "third_party/blink/renderer/modules/modules_export.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h" #include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
#include "third_party/blink/renderer/platform/heap/thread_state.h" #include "third_party/blink/renderer/platform/heap/thread_state.h"
#include "third_party/blink/renderer/platform/wtf/wtf_size_t.h"
namespace blink { namespace blink {
...@@ -142,7 +142,7 @@ class MODULES_EXPORT OutgoingStream ...@@ -142,7 +142,7 @@ class MODULES_EXPORT OutgoingStream
// The offset into |cached_data_| of the first byte that still needs to be // The offset into |cached_data_| of the first byte that still needs to be
// written. // written.
wtf_size_t offset_ = 0; size_t offset_ = 0;
Member<WritableStream> writable_; Member<WritableStream> writable_;
Member<WritableStreamDefaultController> controller_; Member<WritableStreamDefaultController> controller_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment