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

Side by Side Diff: net/spdy/hpack_input_stream.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SPDY_HPACK_INPUT_STREAM_H_ 5 #ifndef NET_SPDY_HPACK_INPUT_STREAM_H_
6 #define NET_SPDY_HPACK_INPUT_STREAM_H_ 6 #define NET_SPDY_HPACK_INPUT_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // Consumes |count| bits of input. Generally paired with PeekBits(). 54 // Consumes |count| bits of input. Generally paired with PeekBits().
55 void ConsumeBits(size_t count); 55 void ConsumeBits(size_t count);
56 56
57 // If not currently on a byte boundary, consumes and discards 57 // If not currently on a byte boundary, consumes and discards
58 // remaining bits in the current byte. 58 // remaining bits in the current byte.
59 void ConsumeByteRemainder(); 59 void ConsumeByteRemainder();
60 60
61 // Accessors for testing. 61 // Accessors for testing.
62 62
63 void SetBitOffsetForTest(size_t bit_offset) { 63 void SetBitOffsetForTest(size_t bit_offset) { bit_offset_ = bit_offset; }
64 bit_offset_ = bit_offset;
65 }
66 64
67 bool DecodeNextUint32ForTest(uint32* I) { 65 bool DecodeNextUint32ForTest(uint32* I) { return DecodeNextUint32(I); }
68 return DecodeNextUint32(I);
69 }
70 66
71 private: 67 private:
72 const uint32 max_string_literal_size_; 68 const uint32 max_string_literal_size_;
73 base::StringPiece buffer_; 69 base::StringPiece buffer_;
74 size_t bit_offset_; 70 size_t bit_offset_;
75 71
76 bool PeekNextOctet(uint8* next_octet); 72 bool PeekNextOctet(uint8* next_octet);
77 73
78 bool DecodeNextOctet(uint8* next_octet); 74 bool DecodeNextOctet(uint8* next_octet);
79 75
80 DISALLOW_COPY_AND_ASSIGN(HpackInputStream); 76 DISALLOW_COPY_AND_ASSIGN(HpackInputStream);
81 }; 77 };
82 78
83 } // namespace net 79 } // namespace net
84 80
85 #endif // NET_SPDY_HPACK_INPUT_STREAM_H_ 81 #endif // NET_SPDY_HPACK_INPUT_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698