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

Unified Diff: net/tools/transport_security_state_generator/bit_writer.h

Issue 2700433004: Update BitWriter buffer position on flush. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | net/tools/transport_security_state_generator/bit_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/transport_security_state_generator/bit_writer.h
diff --git a/net/tools/transport_security_state_generator/bit_writer.h b/net/tools/transport_security_state_generator/bit_writer.h
index e45ff427dac4fc6fd3df4451b143ba118e1a3249..5ceb846caf46b359d8273662eae13178132622e2 100644
--- a/net/tools/transport_security_state_generator/bit_writer.h
+++ b/net/tools/transport_security_state_generator/bit_writer.h
@@ -9,6 +9,8 @@
#include <vector>
+#include "base/macros.h"
+
namespace net {
namespace transport_security_state {
@@ -39,9 +41,6 @@ class BitWriter {
const std::vector<uint8_t>& bytes() const { return bytes_; }
private:
- // Returns the minimum number of bits needed to represent |input|.
- uint8_t BitLength(uint32_t input) const;
-
// Buffers bits until they fill a whole byte.
uint8_t current_byte_ = 0;
@@ -52,6 +51,8 @@ class BitWriter {
uint32_t position_ = 0;
std::vector<uint8_t> bytes_;
+
+ DISALLOW_COPY_AND_ASSIGN(BitWriter);
};
} // namespace transport_security_state
« no previous file with comments | « no previous file | net/tools/transport_security_state_generator/bit_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698