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

Side by Side Diff: net/tools/domain_security_preload_generator/huffman/huffman_node.cc

Issue 2551153003: Add static domain security state generator tool. (Closed)
Patch Set: fix base64 issue and accidental replace. Created 4 years 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
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/tools/domain_security_preload_generator/huffman/huffman_node.h"
6
7 namespace net {
8
9 HuffmanNode::HuffmanNode(uint8_t value,
10 int count,
11 std::unique_ptr<HuffmanNode> left,
12 std::unique_ptr<HuffmanNode> right)
13 : value_(value),
14 count_(count),
15 left_(std::move(left)),
16 right_(std::move(right)) {}
17
18 HuffmanNode::~HuffmanNode() {}
19
20 bool HuffmanNode::IsLeaf() const {
21 return left_.get() == nullptr && right_.get() == nullptr;
22 }
23
24 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698