Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Unified Diff: net/quic/quic_frame_list.h

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_flow_controller_test.cc ('k') | net/quic/quic_frame_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_frame_list.h
diff --git a/net/quic/quic_frame_list.h b/net/quic/quic_frame_list.h
deleted file mode 100644
index f529016f66a42b5230289c2d55d03517446e02b9..0000000000000000000000000000000000000000
--- a/net/quic/quic_frame_list.h
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_QUIC_QUIC_FRAME_LIST_H_
-#define NET_QUIC_QUIC_FRAME_LIST_H_
-
-#include <stddef.h>
-#include <list>
-#include <string>
-
-#include "base/strings/string_piece.h"
-#include "net/quic/quic_protocol.h"
-#include "net/quic/quic_stream_sequencer_buffer_interface.h"
-
-namespace net {
-
-namespace test {
-class QuicStreamSequencerPeer;
-}
-
-class NET_EXPORT_PRIVATE QuicFrameList
- : public QuicStreamSequencerBufferInterface {
- public:
- // A contiguous segment received by a QUIC stream.
- struct FrameData {
- FrameData(QuicStreamOffset offset,
- std::string segment,
- const QuicTime timestamp);
-
- const QuicStreamOffset offset;
- std::string segment;
- const QuicTime timestamp;
- };
-
- QuicFrameList();
-
- ~QuicFrameList() override;
-
- // QuicStreamSequencerBufferInterface implementation
- void Clear() override;
- bool Empty() const override;
- QuicErrorCode OnStreamData(QuicStreamOffset offset,
- base::StringPiece data,
- QuicTime timestamp,
- size_t* bytes_buffered) override;
- size_t Readv(const struct iovec* iov, size_t iov_len) override;
- int GetReadableRegions(struct iovec* iov, int iov_len) const override;
- bool GetReadableRegion(iovec* iov, QuicTime* timestamp) const override;
- bool MarkConsumed(size_t bytes_used) override;
- size_t FlushBufferedFrames() override;
- bool HasBytesToRead() const override;
- QuicStreamOffset BytesConsumed() const override;
- size_t BytesBuffered() const override;
-
- private:
- friend class test::QuicStreamSequencerPeer;
-
- std::list<FrameData>::iterator FindInsertionPoint(QuicStreamOffset offset,
- size_t len);
-
- bool FrameOverlapsBufferedData(
- QuicStreamOffset offset,
- size_t data_len,
- std::list<FrameData>::const_iterator insertion_point) const;
-
- bool IsDuplicate(QuicStreamOffset offset,
- size_t data_len,
- std::list<FrameData>::const_iterator insertion_point) const;
-
- std::list<FrameData> frame_list_;
-
- // Number of bytes in buffer.
- size_t num_bytes_buffered_ = 0;
-
- QuicStreamOffset total_bytes_read_ = 0;
-};
-
-} // namespace net
-
-#endif // NET_QUIC_QUIC_FRAME_LIST_H_
« no previous file with comments | « net/quic/quic_flow_controller_test.cc ('k') | net/quic/quic_frame_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698