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

Unified Diff: net/spdy/spdy_prefixed_buffer_reader.h

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 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/spdy/spdy_pinnable_buffer_piece_test.cc ('k') | net/spdy/spdy_prefixed_buffer_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_prefixed_buffer_reader.h
diff --git a/net/spdy/spdy_prefixed_buffer_reader.h b/net/spdy/spdy_prefixed_buffer_reader.h
deleted file mode 100644
index 9e5fc914580d679befec0baf3e706e32ba4afd85..0000000000000000000000000000000000000000
--- a/net/spdy/spdy_prefixed_buffer_reader.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 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_SPDY_SPDY_PREFIXED_BUFFER_READER_H_
-#define NET_SPDY_SPDY_PREFIXED_BUFFER_READER_H_
-
-#include <stddef.h>
-
-#include "net/base/net_export.h"
-#include "net/spdy/spdy_pinnable_buffer_piece.h"
-
-namespace net {
-
-// Reader class which simplifies reading contiguously from
-// from a disjoint buffer prefix & suffix.
-class NET_EXPORT_PRIVATE SpdyPrefixedBufferReader {
- public:
- SpdyPrefixedBufferReader(const char* prefix, size_t prefix_length,
- const char* suffix, size_t suffix_length);
-
- // Returns number of bytes available to be read.
- size_t Available();
-
- // Reads |count| bytes, copying into |*out|. Returns true on success,
- // false if not enough bytes were available.
- bool ReadN(size_t count, char* out);
-
- // Reads |count| bytes, returned in |*out|. Returns true on success,
- // false if not enough bytes were available.
- bool ReadN(size_t count, SpdyPinnableBufferPiece* out);
-
- private:
- const char* prefix_;
- const char* suffix_;
-
- size_t prefix_length_;
- size_t suffix_length_;
-};
-
-} // namespace net
-
-#endif // NET_SPDY_SPDY_PREFIXED_BUFFER_READER_H_
« no previous file with comments | « net/spdy/spdy_pinnable_buffer_piece_test.cc ('k') | net/spdy/spdy_prefixed_buffer_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698