Commit 518fa55c authored by Dianna Hu's avatar Dianna Hu Committed by Commit Bot

Update a length field from int to size_t.

This CL lands server change 215811820 by diannahu.

BUG=488484

Change-Id: Ide173348373e7ad4f32eaf3226009fafbc18ae7f
Reviewed-on: https://chromium-review.googlesource.com/c/1292437Reviewed-by: default avatarYang Song <yasong@chromium.org>
Reviewed-by: default avatarRyan Hamilton <rch@chromium.org>
Commit-Queue: Ryan Hamilton <rch@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604733}
parent 6f124066
......@@ -896,7 +896,7 @@ class SPDY_EXPORT_PRIVATE SpdyUnknownIR : public SpdyFrameIR {
SpdyUnknownIR& operator=(const SpdyUnknownIR&) = delete;
uint8_t type() const { return type_; }
uint8_t flags() const { return flags_; }
int length() const { return length_; }
size_t length() const { return length_; }
const SpdyString& payload() const { return payload_; }
void Visit(SpdyFrameVisitor* visitor) const override;
......@@ -908,13 +908,13 @@ class SPDY_EXPORT_PRIVATE SpdyUnknownIR : public SpdyFrameIR {
size_t size() const override;
protected:
// Allows subclasses to overwrite the default length.
void set_length(int length) { length_ = length; }
// Allows subclasses to overwrite the default payload length.
void set_length(size_t length) { length_ = length; }
private:
uint8_t type_;
uint8_t flags_;
int length_;
size_t length_;
const SpdyString payload_;
};
......
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