diff options
Diffstat (limited to 'chromium/components/data_use_measurement/core/data_use.cc')
-rw-r--r-- | chromium/components/data_use_measurement/core/data_use.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/chromium/components/data_use_measurement/core/data_use.cc b/chromium/components/data_use_measurement/core/data_use.cc deleted file mode 100644 index 8750f45e2bf..00000000000 --- a/chromium/components/data_use_measurement/core/data_use.cc +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2016 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. - -#include "components/data_use_measurement/core/data_use.h" - -namespace data_use_measurement { - -DataUse::DataUse(TrafficType traffic_type) - : traffic_type_(traffic_type), - total_bytes_sent_(0), - total_bytes_received_(0) {} - -DataUse::~DataUse() {} - -void DataUse::IncrementTotalBytes(int64_t bytes_received, int64_t bytes_sent) { - total_bytes_received_ += bytes_received; - total_bytes_sent_ += bytes_sent; - DCHECK_LE(0, total_bytes_received_); - DCHECK_LE(0, total_bytes_sent_); -} - -} // namespace data_use_measurement |