| OLD | NEW |
| (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 |
| OLD | NEW |