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

Unified Diff: net/spdy/hpack_output_stream.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/hpack_input_stream_test.cc ('k') | net/spdy/hpack_output_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack_output_stream.h
diff --git a/net/spdy/hpack_output_stream.h b/net/spdy/hpack_output_stream.h
deleted file mode 100644
index c607e492efe1b55cd8918d24ed9551b4aa656252..0000000000000000000000000000000000000000
--- a/net/spdy/hpack_output_stream.h
+++ /dev/null
@@ -1,66 +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_HPACK_OUTPUT_STREAM_H_
-#define NET_SPDY_HPACK_OUTPUT_STREAM_H_
-
-#include <map>
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/macros.h"
-#include "base/strings/string_piece.h"
-#include "net/base/net_export.h"
-#include "net/spdy/hpack_constants.h"
-
-// All section references below are to
-// http://tools.ietf.org/html/draft-ietf-httpbis-header-compression-08
-
-namespace net {
-
-// An HpackOutputStream handles all the low-level details of encoding
-// header fields.
-class NET_EXPORT_PRIVATE HpackOutputStream {
- public:
- explicit HpackOutputStream();
- ~HpackOutputStream();
-
- // Appends the lower |bit_size| bits of |bits| to the internal buffer.
- //
- // |bit_size| must be > 0 and <= 8. |bits| must not have any bits
- // set other than the lower |bit_size| bits.
- void AppendBits(uint8 bits, size_t bit_size);
-
- // Simply forwards to AppendBits(prefix.bits, prefix.bit-size).
- void AppendPrefix(HpackPrefix prefix);
-
- // Directly appends |buffer|.
- void AppendBytes(base::StringPiece buffer);
-
- // Appends the given integer using the representation described in
- // 6.1. If the internal buffer ends on a byte boundary, the prefix
- // length N is taken to be 8; otherwise, it is taken to be the
- // number of bits to the next byte boundary.
- //
- // It is guaranteed that the internal buffer will end on a byte
- // boundary after this function is called.
- void AppendUint32(uint32 I);
-
- // Swaps the interal buffer with |output|.
- void TakeString(std::string* output);
-
- private:
- // The internal bit buffer.
- std::string buffer_;
-
- // If 0, the buffer ends on a byte boundary. If non-zero, the buffer
- // ends on the most significant nth bit. Guaranteed to be < 8.
- size_t bit_offset_;
-
- DISALLOW_COPY_AND_ASSIGN(HpackOutputStream);
-};
-
-} // namespace net
-
-#endif // NET_SPDY_HPACK_OUTPUT_STREAM_H_
« no previous file with comments | « net/spdy/hpack_input_stream_test.cc ('k') | net/spdy/hpack_output_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698